Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1915: Nested matrix products with transposes causes compiler to complain error: invalid application of âsizeofâ
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-14 21:56:28
#1915: Nested matrix products with transposes causes compiler to complain error:
invalid application of âsizeofâ
-------------------------------------------+--------------------------------
Reporter: Leo Singer <aronnax_at_[hidden]> | Owner: guwi17
Type: Support Requests | Status: assigned
Milestone: To Be Determined | Component: uBLAS
Version: Boost 1.34.1 | Severity: Cosmetic
Resolution: | Keywords: ublas trans nested product
-------------------------------------------+--------------------------------
Changes (by guwi17):
* keywords: ublas trans => ublas trans nested product
* status: new => assigned
* type: Bugs => Support Requests
* severity: Problem => Cosmetic
* milestone: Boost 1.36.0 => To Be Determined
Comment:
the compilation failure is by design. You see this from the
STATIC_ASSERTION_FAILURE which causes a compiler error. However, I agree
that the error message itself is not very helpful.
Actually any nested product should cause a static assertion since the
numerical complexity of the expression prod(prod(A,B),C) is far bigger
that for the approach using a temporary: temp = prod(A,B); prod(temp,C);
(see http://www.crystalclearsoftware.com/cgi-
bin/boost_wiki/wiki.pl?Effective_UBLAS section "Controlling the complexity
of nested products")
Actually any nested product without temporaries should cause a static
assertion. I'll check this in a few days.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1915#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC