Package org.jblas.ranges
Class AllRange
java.lang.Object
org.jblas.ranges.AllRange
- All Implemented Interfaces:
Range
A range over all available indices. Can be used to address whole columns or rows. Like
the ":" index in matlab. Don't forget to call init() before using this range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasMore()
More indices available?int
index()
Consecutive numbering of current index.void
init
(int l, int u) Initialize Range to available indicesint
length()
Total number of indices.void
next()
Increase counter.toString()
int
value()
Get current index.
-
Constructor Details
-
AllRange
public AllRange()
-
-
Method Details
-
init
Description copied from interface:Range
Initialize Range to available indices -
length
Description copied from interface:Range
Total number of indices. -
value
Description copied from interface:Range
Get current index. -
index
Description copied from interface:Range
Consecutive numbering of current index. -
next
Description copied from interface:Range
Increase counter. -
hasMore
Description copied from interface:Range
More indices available? -
toString
-