Boost logo

Boost :

Subject: Re: [boost] Formal review request: static size matrix/vector linear algebra library (Boost) LA
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2010-02-11 12:12:28


On Wed, Feb 10, 2010 at 11:20 PM, Joel Falcou <joel.falcou_at_[hidden]> wrote:
> Emil Dotchevski wrote:
>>
>> By overloading generically, I mean the way other operators are
>> overloaded in (Boost) LA: they're namespace-scope functions that
>> kick-in for any conforming user-defined vector or matrix type.
>
> Oh yeah OK i see it now.
> What about:
>
> at(v, (_2,_1,-_3)) = xxx ; ?

Perhaps at<2,1,-3>(v) = xxx

This is a possibility, yes. I think it is better if this is a function
by default, instead of operator overload. With the function, the
operator overload is trivial to implement by the user.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk