private static final class IndexedTensor.SingleDimensionIndexes extends IndexedTensor.Indexes
Modifier and Type | Field and Description |
---|---|
private int |
currentIterationValueIndex
Maintain this directly as an optimization for 1-d iteration
|
private int |
currentSourceValueIndex
Maintain this directly as an optimization for 1-d iteration
|
private int |
iterateDimension |
private int |
iterationStep
The iteration step in the value index space
|
private int |
size |
private int |
sourceStep
The iteration step in the value index space
|
indexes
Modifier | Constructor and Description |
---|---|
private |
SingleDimensionIndexes(DimensionSizes sourceSizes,
DimensionSizes iterateSizes,
int iterateDimension,
int[] initialIndexes,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
next()
Advances this to the next cell in the standard indexed tensor cell order.
|
int |
size()
Returns the number of values this will iterate over - i.e the product if the iterating dimension sizes
|
(package private) int |
toIterationValueIndex() |
(package private) int |
toSourceValueIndex() |
dimensionSizes, indexesCopy, indexesForReading, of, toList, toString
private final int size
private final int iterateDimension
private int currentSourceValueIndex
private int currentIterationValueIndex
private final int sourceStep
private final int iterationStep
private SingleDimensionIndexes(DimensionSizes sourceSizes, DimensionSizes iterateSizes, int iterateDimension, int[] initialIndexes, int size)
public int size()
size
in class IndexedTensor.Indexes
public void next()
next
in class IndexedTensor.Indexes
RuntimeException
- if this is called more times than its sizeint toSourceValueIndex()
toSourceValueIndex
in class IndexedTensor.Indexes
int toIterationValueIndex()
toIterationValueIndex
in class IndexedTensor.Indexes
Copyright © 2017. All rights reserved.