public class ComposedArray<E> extends TransformedArray<E>
Modifier and Type | Class and Description |
---|---|
static class |
ComposedArray.AsSequence<E>
Same as ComposedArray but also implements AVector.
|
base
noInts
Constructor and Description |
---|
ComposedArray(Array base,
int rank,
int[] dims,
int[] lowBounds,
Array<java.lang.Integer>[] mappers) |
Modifier and Type | Method and Description |
---|---|
int |
effectiveIndex() |
int |
effectiveIndex(int i) |
int |
effectiveIndex(int i,
int j) |
int |
effectiveIndex(int i,
int j,
int k,
int... rest) |
static java.lang.Object |
generalIndex(Array arr,
boolean shared,
int start,
int nindexes,
java.lang.Object[] indexes) |
static java.lang.Object |
generalIndex(Array arr,
boolean shared,
java.lang.Object... indexes) |
int |
getLowBound(int dim)
Get the least dimension along the specified dimension.
|
int |
getSize(int dim)
Get length along specified dimension.
|
int |
rank()
Get the rank (number of dimensions) of this array.
|
checkCanWrite, getBooleanRaw, getByteRaw, getCharRaw, getDoubleRaw, getElementKind, getFloatRaw, getInt, getInt, getIntRaw, getLongRaw, getRaw, getRowMajor, getShortRaw, setRaw
add, add, addAll, addAll, addPos, asImmutable, badRank, boundedHash, checkRank, clear, compare, compare, compare, consume, consume, consumeNext, consumePosRange, contains, containsAll, copyPos, createPos, createRelativePos, effectiveIndex, elements, endPos, equals, equals, fill, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, get, get, get, getAttribute, getAttributeLength, getContainingSequenceSize, getIndexDifference, getInt, getInt, getInt, getIterator, getIterator, getIteratorAtPos, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isAfterPos, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, nextMatching, nextPos, parentPos, previousPos, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setAt, setBuffer, setPosNext, setPosPrevious, size, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedException
public int rank()
Array
public int getLowBound(int dim)
Array
getLowBound
in interface Array<E>
getLowBound
in class AbstractSequence<E>
public int getSize(int dim)
Array
public final int effectiveIndex()
effectiveIndex
in interface Array<E>
effectiveIndex
in class AbstractSequence<E>
public final int effectiveIndex(int i)
effectiveIndex
in interface Array<E>
effectiveIndex
in class AbstractSequence<E>
public final int effectiveIndex(int i, int j)
effectiveIndex
in interface Array<E>
effectiveIndex
in class AbstractSequence<E>
public final int effectiveIndex(int i, int j, int k, int... rest)
effectiveIndex
in interface Array<E>
effectiveIndex
in class AbstractSequence<E>
public static java.lang.Object generalIndex(Array arr, boolean shared, java.lang.Object... indexes)
public static java.lang.Object generalIndex(Array arr, boolean shared, int start, int nindexes, java.lang.Object[] indexes)