Re-instated "dotProduct" method whose removal breaks backward compatibility.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1378083 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74cf48bee7
commit
f394970a17
|
@ -304,6 +304,26 @@ public class OpenMapRealVector extends SparseRealVector
|
|||
return new OpenMapRealVector(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the dot product.
|
||||
* Note that the computation is now performed in the parent class: no
|
||||
* performance improvement is to be expected from this overloaded
|
||||
* method.
|
||||
* The previous implementation was buggy and cannot be easily fixed
|
||||
* (see MATH-795).
|
||||
*
|
||||
* @param v Vector.
|
||||
* @return the dot product of this vector with {@code v}.
|
||||
*
|
||||
* @deprecated as of 3.1 (to be removed in 4.0). The computation is
|
||||
* performed by the parent class. The method must be kept to maintain
|
||||
* backwards compatibility.
|
||||
*/
|
||||
@Deprecated
|
||||
public double dotProduct(OpenMapRealVector v) {
|
||||
return dotProduct((RealVector) v);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public OpenMapRealVector ebeDivide(RealVector v) {
|
||||
|
|
Loading…
Reference in New Issue