commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <>
Subject Re: [math] Equivalent of Blas DAXPY
Date Thu, 07 Jul 2011 13:29:42 GMT
Le 07/07/2011 10:31, Sebastien Brisard a écrit :
> Hi,

Hi Sébastien,

> in Blas, the method DAXPY can lead to very compact code. As far as I know, it
> has no equivalent in RealVector. There are a few method called xxxxToSelf,
> which modify the calling vector, instead of returning a new one, but these are
> restricted to scalars operating on vectors.
> In other words, there are no in-place vector-vector operations.
> Would you think it useful to add at least one method, say
> combineToSelf(double s, double t, RealVector v)
> which would replace the components of this by the components of (s * this + t
> * v). This would be a slight generalization of DAXPY.

For sure this would be an interesting addition.


> It would be fairly easy to implement for ArrayRealVector, not sure about
> OpenMapRealVector.
> Best regards,
> Sebastien
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message