|
Ublas : |
Subject: Re: [ublas] novice question. how to use ublas bindings
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-08-22 06:13:39
Luca Sbardella wrote:
> And where is that function defined?
> I cannot see it in driver/syev.hpp (trunk version).
Hello Luca,
please also see my response to Karl. I think introducing
template< typename M >
ublas::symmetric_adaptor<M,ublas::upper> upper( M& m ) {
return ublas::symmetric_adaptor<M, ublas::upper >(m);
}
and enabling a RValue version of syev would do the trick, so you would be
able to write
syev( 'V', upper(a), ... );
I'll try to check if I'm able to produce something w.r.t. a function that
also accepts RValue matrices. In the end, IMHO, we should get rid of the
'V', too.
Cheers,
Rutger