Package org.hipparchus.linear
Class SparseRealVector
- java.lang.Object
-
- org.hipparchus.linear.RealVector
-
- org.hipparchus.linear.SparseRealVector
-
- Direct Known Subclasses:
OpenMapRealVector
public abstract class SparseRealVector extends RealVector
Marker class for RealVectors that require sparse backing storageCaveat: Implementation are allowed to assume that, for any
x
, the equalityx * 0d == 0d
holds. But it is is not true forNaN
. Moreover, zero entries will lose their sign. Some operations (that involveNaN
and/or infinities) may thus give incorrect results, like multiplications, divisions or functions mapping.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hipparchus.linear.RealVector
RealVector.Entry, RealVector.SparseEntryIterator
-
-
Constructor Summary
Constructors Constructor Description SparseRealVector()
-
Method Summary
-
Methods inherited from class org.hipparchus.linear.RealVector
add, addToEntry, append, append, checkIndex, checkIndices, checkVectorDimensions, checkVectorDimensions, combine, combineToSelf, copy, cosine, dotProduct, ebeDivide, ebeMultiply, equals, getDimension, getDistance, getEntry, getL1Distance, getL1Norm, getLInfDistance, getLInfNorm, getMaxIndex, getMaxValue, getMinIndex, getMinValue, getNorm, getSubVector, hashCode, isInfinite, isNaN, iterator, map, mapAdd, mapAddToSelf, mapDivide, mapDivideToSelf, mapMultiply, mapMultiplyToSelf, mapSubtract, mapSubtractToSelf, mapToSelf, outerProduct, projection, set, setEntry, setSubVector, sparseIterator, subtract, toArray, unitize, unitVector, unmodifiableRealVector, walkInDefaultOrder, walkInDefaultOrder, walkInDefaultOrder, walkInDefaultOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder
-
-