Package org.nuiton.math.matrix
Interface SparseVector
- All Superinterfaces:
Vector
- All Known Implementing Classes:
DoubleSparseArrayVector,DoubleSparseHashVector,LegacyDoubleSparseHashVector
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Method Summary
Modifier and TypeMethodDescriptionlong[]Return an orderer array of position assigned, this array can be longer than realy assigned value, you must used getNumberOfAssignedValue to know number of significant position in arraydouble[]Return an array in same order that getAssignedPosition.doubleValue to used if not un assigned valueMethods inherited from interface org.nuiton.math.matrix.Vector
add, forEach, forEachNotZero, getInfo, getMaxOccurence, getMaxOccurrence, getNumberOfAssignedValue, getValue, init, isImplementedAdd, isImplementedMap, isImplementedMinus, isImplementedPaste, iterator, iteratorNotZero, map, minus, paste, setValue, size
-
Method Details
-
getDefaultValue
double getDefaultValue()Value to used if not un assigned value- Returns:
-
getAssignedPosition
long[] getAssignedPosition()Return an orderer array of position assigned, this array can be longer than realy assigned value, you must used getNumberOfAssignedValue to know number of significant position in array- Returns:
-
getAssignedValue
double[] getAssignedValue()Return an array in same order that getAssignedPosition. This array contains values. This array can be longer than realy assigned value, you must used getNumberOfAssignedValue to know number of significant position in array- Returns:
-