Class PointRange
java.lang.Object
org.jblas.ranges.PointRange
- All Implemented Interfaces:
Range
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasMore()More indices available?intindex()Consecutive numbering of current index.voidinit(int l, int u) Initialize Range to available indicesintlength()Total number of indices.voidnext()Increase counter.toString()intvalue()Get current index.
-
Field Details
-
value
private int value -
consumed
private boolean consumed
-
-
Constructor Details
-
PointRange
public PointRange(int v) Construct a new PointRange with the one given index.
-
-
Method Details
-
init
-
length
-
value
-
index
-
next
-
hasMore
-
toString
-