List of usage examples for org.apache.commons.math3.linear RealVectorPreservingVisitor start
void start(int dimension, int start, int end);
From source file:com.cloudera.oryx.common.math.SparseRealVector.java
private double doWalk(Iterator<Entry> it, RealVectorPreservingVisitor visitor) { int dim = getDimension(); visitor.start(dim, 0, dim - 1); while (it.hasNext()) { Entry e = it.next();//from w w w . j a v a 2 s . co m visitor.visit(e.getIndex(), e.getValue()); } return visitor.end(); }