Package org.hipparchus.linear
Class SparseRealVector
java.lang.Object
org.hipparchus.linear.RealVector
org.hipparchus.linear.SparseRealVector
- Direct Known Subclasses:
OpenMapRealVector
Marker class for RealVectors that require sparse backing storage
Caveat: Implementation are allowed to assume that, for any x
,
the equality x * 0d == 0d
holds. But it is is not true for
NaN
. Moreover, zero entries will lose their sign.
Some operations (that involve NaN
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
-
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
-
Constructor Details
-
SparseRealVector
public SparseRealVector()Empty constructor.This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
- Since:
- 3.0
-