Boost logo

Ublas :

Subject: Re: [ublas] error in reducing types with vector_scalar_binary_traits
From: Michael Norel (minorlogic_at_[hidden])
Date: 2009-08-16 08:56:54


Hi All!

Sorry, i is not a uBlas error, it is error of fadbad library. Not correct assignment constructor.

Problem solved by mofifying "fadbad".

Thanks all!

--- On Fri, 8/14/09, Michael Norel <minorlogic_at_[hidden]> wrote:

> From: Michael Norel <minorlogic_at_[hidden]>
> Subject: [ublas] error in reducing types with vector_scalar_binary_traits
> To: ublas_at_[hidden]
> Date: Friday, August 14, 2009, 10:51 AM
> Hi All!
>
> I use "1_35_0" boost version and try to use ublas with
> "fadbad" library.
>
>
> "http://www.fadbad.com/fadbad.html"
> Automatic differentiation using templates and operator
> overloading in C++
>
> I have problm with "reducing" operators from
> "fadbad::F<double>". The ublas assume that result of
> reduce is "double" type, but correct is
> "fadbad::F<double>".
>
>
> simple pseudocode:
> //=============================
> #include "externalLibs/fadbad/fadiff.h"
> void test()
> {
>    typedef fadbad::F<double>
> fadDouble;
>    boost::numeric::ublas::vector<fadDouble>
> vvv(777);
>    boost::numeric::ublas::inner_prod(vvv,
> vvv);
> }
> //=============================
>
> Please help me, how can i say to ublas reduce
> fadbad::F<double> to fadbad::F<double> ? 
> This will help me a lot.
>
> Thanks!
>
>
>
>
>
>
>
>
>      
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: minorlogic_at_[hidden]
>