Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2008-08-28 17:16:47


Am Mittwoch, 27. August 2008 09:25 schrieb manik.s.m_at_[hidden]:
> Here is concerned lines of code and error
>
> /********************************************************************
>*********************** symmetric_adaptor<matrix<double>,lower>
> sal(tmpMatrix);
> atlas::potrf(sal);
>
> triangular_adaptor<matrix<double>,lower> tal(matrix<double>(sal));

try this:

triangular_adaptor<matrix<double>,lower> tal((matrix<double>(sal)));

(see
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Frequently_Asked_Questions_Using_UBLAS

question "Strange compile error using zero_vector"

for an explanation)

> /home/tombombadil/LMMBlanket/src/LMMDataEngine.cpp:288: error: no
> matching function for call to
> 'prod(boost::numeric::ublas::triangular_adaptor<boost::numeric::ublas
>::matrix<double, boost::numeric::ublas::basic_row_major<unsigned int,
> int>,
> boost::numeric::ublas::unbounded_array<double, std::allocator<double>
>
> > >, boost::numeric::ublas::basic_lower<unsigned int> >
>
> (&)(boost::numeric::ublas::matrix<double,

  ^^^ this is the signal that the compiler uses a function pointer
instead a class.

> boost::numeric::ublas::basic_row_major<unsigned int, int>,
> boost::numeric::ublas::unbounded_array<double, std::allocator<double>
>

mfg
Gunter