Boost logo

Ublas :

Subject: Re: [ublas] Problem with nested products
From: Andrea Cassioli (cassioliandre_at_[hidden])
Date: 2010-12-21 03:36:14

good point Ryo. I read the page you link so long time ago that I
completely forgot it!
I dare say that probably such advise and tips should be highlight more
clearly in the documentation....


On Tue, Dec 21, 2010 at 1:17 AM, Ryo IGARASHI <rigarash_at_[hidden]> wrote:
> Hi,
> On Tue, Dec 21, 2010 at 2:33 AM, Andrea Cassioli
> <cassioliandre_at_[hidden]> wrote:
>> I was just looking at the same thing few days ago! For what I have
>> understood, prod() returns a temporary object for which does not
>> exsist a corresponding prod, so the composition prod(matrix,
>> prod(matrix,matrix)) is allowed.
>> Clearly one can use a vector instead, but it is not always the case.
>> It is a functionality that should be implemented.
> No. This kind of nested product operation is explicitly prohibited.
> See the "Controlling the complexity of nested product" section
> in the documentation:
> --
> rigarash_at_[hidden]
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> Sent to: cassioliandre_at_[hidden]

Andrea Cassioli