Boost logo

Ublas :

Subject: Re: [ublas] noaliasing assignment
From: Oswin Krause (Oswin.Krause_at_[hidden])
Date: 2011-11-09 09:55:54


Hi,

yes, you have to specify it every time when the result is not on the right
of the expression

e.g

noalias(A)=prod(B,C)+D;

but:

A=prod(B,A)+D

This is needed, because ublas wants to be fail-safe in case 2. if noalias
would be the default, the second expression would result in wrong results.

>
> Hi all,
>
> Does noalias() assignment work only when it is explicitly specified? In
> other words, do I have to specify noalias() by hands where it is needed?
>
> Thanks.
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: Oswin.Krause_at_[hidden]
>