public abstract class BaseDenseTensorIterator extends java.lang.Object implements TensorIterator
| Modifier | Constructor and Description |
|---|---|
protected |
BaseDenseTensorIterator(BaseDenseTensorIterator original) |
protected |
BaseDenseTensorIterator(int rank) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
cache(int level,
int childIndex)
Fill the level of cache from the childIndex child of the level-1.
|
protected abstract void |
cacheRoot()
Fill the 0th level of cache with the root.
|
int |
getFlatIndex() |
protected int |
getIndex(int dimension) |
protected int |
getRank() |
boolean |
isValid() |
void |
next()
Move iterator to the next row.
|
void |
start()
Rewinds the iterator to the beginning of its range.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoolean, getBytes, getCopy, getDouble, getString, getTensorData, getTypes, getValuegetFloat, getInt, getLongprotected BaseDenseTensorIterator(int rank)
protected BaseDenseTensorIterator(BaseDenseTensorIterator original)
protected final int getRank()
public final int getFlatIndex()
protected final int getIndex(int dimension)
protected abstract boolean cache(int level,
int childIndex)
protected abstract void cacheRoot()
public void start()
TensorIteratorstart in interface TensorIteratorpublic boolean isValid()
isValid in interface TensorIteratorpublic void next()
TensorIteratornext in interface TensorIterator