Boost C++ Libraries: Ticket #3539: uBLAS: norm_inf returns incorrect output for complex vectors. https://svn.boost.org/trac10/ticket/3539 <p> The attached code shows that norm_inf returns an incorrect output for vector&lt;complex&gt; inputs. </p> <p> I've tried it with VS using boost-1.39 and boost-1.40 as well as gcc4.4 on linux and mingw/windows with boost-1.39. They all return the incorrect output for norm_inf. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3539 Trac 1.4.3 karvind.umich@… Thu, 22 Oct 2009 02:25:40 GMT attachment set https://svn.boost.org/trac10/ticket/3539 https://svn.boost.org/trac10/ticket/3539 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_ublas.cpp</span> </li> </ul> <p> test code that produces error </p> Ticket Gunter Wed, 28 Oct 2009 22:22:51 GMT milestone changed https://svn.boost.org/trac10/ticket/3539#comment:1 https://svn.boost.org/trac10/ticket/3539#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.41.0</span> → <span class="trac-field-new">Boost 1.42.0</span> </li> </ul> <p> too late for 1.41 now </p> Ticket Gunter Wed, 07 Apr 2010 19:15:09 GMT <link>https://svn.boost.org/trac10/ticket/3539#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3539#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/61135" title="see #3539: a testcase was provided to recreate the problem ...">[61135]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3539" title="#3539: Bugs: uBLAS: norm_inf returns incorrect output for complex vectors. (closed: fixed)">#3539</a>: a testcase was provided to recreate the problem </p> <p> test/Jamfile.v2: added new target </p> <p> test/test_complex_norms.cpp: added new testcase for complex vector norms </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Wed, 07 Apr 2010 19:24:28 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/3539#comment:3 https://svn.boost.org/trac10/ticket/3539#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.42.0</span> → <span class="trac-field-new">Boost 1.43.0</span> </li> </ul> <p> fix will go into current release. </p> Ticket Gunter Wed, 07 Apr 2010 19:33:01 GMT <link>https://svn.boost.org/trac10/ticket/3539#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3539#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/61136" title="see #3539: changed implementation of norm_inf and norm_1 for complex ...">[61136]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3539" title="#3539: Bugs: uBLAS: norm_inf returns incorrect output for complex vectors. (closed: fixed)">#3539</a>: </p> <p> changed implementation of norm_inf and norm_1 for complex types to use abs(z) instead of max(abs(real(z)),abs(imag(z))). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Wed, 07 Apr 2010 19:33:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3539#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3539#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/61137" title="see #3539: added release note and warning ">[61137]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3539" title="#3539: Bugs: uBLAS: norm_inf returns incorrect output for complex vectors. (closed: fixed)">#3539</a>: </p> <p> added release note and warning </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Sun, 11 Apr 2010 20:11:16 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3539#comment:6 https://svn.boost.org/trac10/ticket/3539#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/61206" title="fix #3539: merged [61135], [61136], [61137] into release ...">[61206]</a>) fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3539" title="#3539: Bugs: uBLAS: norm_inf returns incorrect output for complex vectors. (closed: fixed)">#3539</a>: merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/61135" title="see #3539: a testcase was provided to recreate the problem ...">[61135]</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/61136" title="see #3539: changed implementation of norm_inf and norm_1 for complex ...">[61136]</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/61137" title="see #3539: added release note and warning ">[61137]</a> into release </p> <p> boost/numeric/ublas/traits.hpp: fixed complex_traits </p> <p> libs/numeric/ublas/test/Jamfile.v2: added testcase </p> <p> libs/numeric/ublas/test/test_complex_norms.cpp: new testcase </p> <p> libs/numeric/ublas/doc/release_notes.htm: updated release notes </p> Ticket