Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-09-07 10:14:12


On Thursday 07 September 2006 15:28, Guimond, Alexandre wrote:
> I get the error at the end of this email compiling this code with MVC++
> 7.1 and boost 1.33.1:
>
> ==== code =====
> boost::numeric::ublas::matrix< float > triangular( 3, 3 );
> boost::numeric::ublas::vector<float> b( 3 );
> const int singular = boost::numeric::ublas::lu_factorize( triangular );
> if( singular == 0 )
> {
> boost::numeric::ublas::lu_substitute( triangular, b );
> }

the compiler could not decide whether you want to solve Ax=b with a single rhs
or A^T X = B with multiple rhs.

You should explicitly state the template arguments

lu_substitute< matrix<float> >( triangular, b );

mfg
Gunter