Hello.
> > > in MATH-803 [1] it was decided to deprecate
> > RealVector.ebeMultiply/Divide,
> > > because these methods were difficult to support with sparse vectors.
> > > However, in MATH-870, we decided to deprecate sparse vectors altogether.
> > >
> > > I'm therefore having second thoughts on MATH-803. Since the problematic
> > > implementations of RealVector are removed, why not keep these quite handy
> > > methods?
The goal was also to "clean up" the matrix and vector implementations.
I'd rather suggest to add such features in the "MathArrays" class:
-----
public static double[] ebeDivide(double[] numer,
double[] denom) {
if (numer.length != denom.length) {
throw new DimensionMismatchException(numer.length, denom.length);
}
final double[] result = numer.clone();
for (int i = 0; i < numer.length; i++) {
result[i] /= denom[i];
}
return result;
}
-----
What do you think?
Gilles
> [...]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]