Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-06-13 17:28:28


Am Dienstag, 13. Juni 2006 16:13 schrieb Martin Wiebusch:
> A = prod(prod(herm(O),A), O);
> gives this error on compilation:
>
> ‘boost::STATIC_ASSERTION_FAILURE<false>’

this static assertion is a feature because you have to create a
temporary matrix for such products. (Otherwise the computational
complexity would be extremly large, AFAIK O(n^6))

try this:

  A = prod(prod<TEMP_MATRIX>(herm(O),A), O);

and read this

http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Effective_UBLAS
section "Controlling the complexity of nested products"

mfg
Gunter