public interface HjRegion
Modifier and Type | Interface and Description |
---|---|
static interface |
HjRegion.HjRegion1D
Abstraction for a 1-D region.
|
static interface |
HjRegion.HjRegion2D
Abstraction for a 2-D region.
|
static interface |
HjRegion.HjRegion3D
Abstraction for a 3-D region.
|
Modifier and Type | Method and Description |
---|---|
Iterator<HjPoint> |
iterator()
Returns an iterator over an int array whose length is specified by the rank.
|
Iterator<HjPoint> |
iterator(int startLinearIndex,
int maxNumItems)
Returns an iterator over an int array whose length is specified by the rank.
|
int |
lowerLimit(int index)
Returns the lower limit of the region at the specified dimension.
|
int |
numElements()
Returns the number of elements in the iteration space defined by the region.
|
int |
rank()
Returns the rank of the region.
|
int |
toLinearIndex(int[] regionIndices)
Returns the zero-based linear index in the 1D array.
|
int[] |
toRegionIndex(int linearIndex)
Return the region based index of the linear index.
|
Iterable<HjPoint> |
toSeqIterable()
The HjPoint object returned by the iterator may be reused by the iterator in subsequent calls to next().
|
int |
upperLimit(int index)
Returns the upper limits of the region at the specified dimension.
|
Iterable<HjPoint> toSeqIterable()
Iterator<HjPoint> iterator()
Iterator<HjPoint> iterator(int startLinearIndex, int maxNumItems)
startLinearIndex
- The starting linear index of the array.maxNumItems
- The maximum number of items in the returned iterator.int rank()
int numElements()
int lowerLimit(int index)
int upperLimit(int index)
int[] toRegionIndex(int linearIndex)
linearIndex
- The zero-based linear index in the 1D arrayint toLinearIndex(int[] regionIndices)
regionIndices
- The region based index.Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.