Package org.nuiton.math.matrix
Interface SparseVector
- All Superinterfaces:
Vector
- All Known Implementing Classes:
DoubleSparseArrayVector,DoubleSparseHashVector
public interface SparseVector extends Vector
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Method Summary
Modifier and Type Method Description int[]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 arraydouble[]getAssignedValue()Return an array in same order that getAssignedPosition.doublegetDefaultValue()Value to used if not un assigned valueMethods inherited from interface org.nuiton.math.matrix.Vector
add, 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
int[] 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:
-