|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jblas.ranges.AllRange
public class AllRange
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 | |
|---|---|
AllRange()
|
|
| Method Summary | |
|---|---|
boolean |
hasMore()
More indices available? |
int |
index()
Consecutive numbering of current index. |
void |
init(int l,
int u)
Initialize Range to available indices |
int |
length()
Total number of indices. |
void |
next()
Increase counter. |
int |
value()
Get current index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllRange()
| Method Detail |
|---|
public void init(int l,
int u)
Range
init in interface Rangepublic int length()
Range
length in interface Rangepublic int value()
Range
value in interface Rangepublic int index()
Range
index in interface Rangepublic void next()
Range
next in interface Rangepublic boolean hasMore()
Range
hasMore in interface Range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||