Boost logo

Ublas :

Subject: Re: [ublas] Patch/proposal for overloading operator * in ublas
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-08-18 07:37:50


Jesse Perla wrote:

> As discussed in previous posts, people really can't get past the lack of *
> overloading in ublas. I know this was partially a philosophical/design
> decision, but it is extremely important to "joe user". Can this be easily
> remedied?
>

I would second this, I don't think there are technical limitations for it?

Perhaps

x = trans(a) * b // inner prod
x = prec(trans(a)*b) // prec inner prod
x = a * trans(b) // outer prod

might be considered too? If it will work like that work matrices, why not
for vectors? Fewer keywords, same expressiveness.

Cheers,

Rutger