|
Ublas : |
From: Leopoldo Peralta (lperalta_at_[hidden])
Date: 2007-07-18 11:02:45
When using uBlas object with boost::rational types, the program fails to
compile throwing this error (MS Visual Studio 2003, SP1)
c:\boost_1_34_0_beta\boost_1_34_0\boost\numeric\ublas\traits.hpp(89): error
C2665: 'abs' : none of the 5 overloads can convert parameter 1 from type
'const ratio'
This code shows the bug:
typedef boost::rational<int> ratio;
vector<ratio> r(2);
r[0] = ratio(2,3);
r[1] = ratio(2,7);
ratio dNorm = index_norm_inf(r); <-- Error Line
Any suggestion to fix it?
Thanks,
Leopoldo Peralta
-----Mensaje original-----
De: ublas-bounces_at_[hidden] [mailto:ublas-bounces_at_[hidden]] En
nombre de Gunter Winkler
Enviado el: Sunday, July 15, 2007 3:04 PM
Para: ublas mailing list
Asunto: Re: [ublas] vector of vector adaptors
Sorkin Dima schrieb:
> Hi.
> Ublas defines and can work with "vector of vector adaptors"
> as matrices. Does somebody have a quick hint where are they defined
> and is there some documentation ?
>
see (surprise!) vector_of_vector.hpp
I'd suggest
generalized_vector_of_vector< double, row_major, vector<
compressed_vector<double> > >
mfg
Gunter
_______________________________________________
ublas mailing list
ublas_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/ublas