Example usage for org.apache.commons.math3.linear RealVectorPreservingVisitor end

List of usage examples for org.apache.commons.math3.linear RealVectorPreservingVisitor end

Introduction

In this page you can find the example usage for org.apache.commons.math3.linear RealVectorPreservingVisitor end.

Prototype

double end();

Source Link

Document

End visiting a vector.

Usage

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);//from w  w  w  .  j av  a2s  .c om
    while (it.hasNext()) {
        Entry e = it.next();
        visitor.visit(e.getIndex(), e.getValue());
    }
    return visitor.end();
}