Package org.nuiton.math.matrix
Class SparseHashVectorIterator
java.lang.Object
org.nuiton.math.matrix.SparseVectorIterator
org.nuiton.math.matrix.SparseHashVectorIterator
- All Implemented Interfaces:
VectorIterator
public class SparseHashVectorIterator extends SparseVectorIterator
Implantation pour les sparse qui utilise des Map comme backend et ne peuvent
pas facilement retourner des tableaux tries
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Field Summary
Fields Modifier and Type Field Description protected int[]assignedPositionFields inherited from class org.nuiton.math.matrix.SparseVectorIterator
assignedPos, assignedSize, defaultValue, exclude, hasExclude, nextPos, nextValue, pos, size, value, vector -
Constructor Summary
Constructors Constructor Description SparseHashVectorIterator(SparseVector vector)SparseHashVectorIterator(SparseVector vector, double exclude) -
Method Summary
Modifier and Type Method Description protected intgetAssignedPosition(int pos)protected doublegetAssignedValues(int pos)Methods inherited from class org.nuiton.math.matrix.SparseVectorIterator
computeNextPosAndValue, getPosition, getValue, getValue, hasNext, next, setExclude, setValue
-
Field Details
-
assignedPosition
protected int[] assignedPosition
-
-
Constructor Details
-
Method Details
-
getAssignedPosition
protected int getAssignedPosition(int pos) -
getAssignedValues
protected double getAssignedValues(int pos)
-