Package gnu.lists
Interface Array<E>
- All Known Subinterfaces:
AVector<E>,GVector<E>,IntSequence
- All Known Implementing Classes:
AbstractCharVector,ArgListVector,Arrays.BuiltArray,Arrays.ProcTransformedArray,BitVector,Blob,ByteVector,CharBuffer,CharVector,ComposedArray,ComposedArray.AsSequence,F32Vector,F64Vector,FlattenedArray,FString,FVector,GeneralArray,GeneralArray1,IndirectIndexedSeq,IntVector,IString,IString.SubString,LongVector,Nodes.NodeVector,PrimIntegerVector,Range,Range.IntRange,S16Vector,S32Vector,S64Vector,S8Vector,ShortVector,SimpleVector,TransformedArray,U16Vector,U32Vector,U64Vector,U8Vector
public interface Array<E>
General interface to arrays of arbitrary dimension.
-
Method Summary
Modifier and TypeMethodDescriptionintinteffectiveIndex(int index) inteffectiveIndex(int[] indexes) inteffectiveIndex(int i, int j) inteffectiveIndex(int i, int j, int k, int... rest) get()get(int i) get(int[] indexes) get(int i, int j) get(int i, int j, int k, int... rest) booleangetBooleanRaw(int index) bytegetByteRaw(int index) chargetCharRaw(int index) doublegetDoubleRaw(int index) intfloatgetFloatRaw(int index) intgetInt()intgetInt(int arg1) intgetInt(int[] args) intgetInt(int arg1, int arg2) intgetInt(int arg1, int arg2, int arg3, int... rest) intgetIntRaw(int index) longgetLongRaw(int index) intgetLowBound(int dim) Get the least dimension along the specified dimension.getRaw(int index) Given an "effective index", return element as object.getRowMajor(int index) shortgetShortRaw(int index) intgetSize()Total number of elements.intgetSize(int dim) Get length along specified dimension.booleanisEmpty()intrank()Get the rank (number of dimensions) of this array.voidvoid
-
Method Details
-
isEmpty
boolean isEmpty() -
rank
int rank()Get the rank (number of dimensions) of this array. The rank of a scalar is 0, of a Sequence is 1, of a matrix is 2, etc. -
getElementKind
int getElementKind() -
effectiveIndex
int effectiveIndex() -
effectiveIndex
int effectiveIndex(int index) -
effectiveIndex
int effectiveIndex(int i, int j) -
effectiveIndex
int effectiveIndex(int i, int j, int k, int... rest) -
effectiveIndex
int effectiveIndex(int[] indexes) -
getRaw
Given an "effective index", return element as object. -
getBooleanRaw
boolean getBooleanRaw(int index) -
getCharRaw
char getCharRaw(int index) -
getByteRaw
byte getByteRaw(int index) -
getShortRaw
short getShortRaw(int index) -
getIntRaw
int getIntRaw(int index) -
getLongRaw
long getLongRaw(int index) -
getFloatRaw
float getFloatRaw(int index) -
getDoubleRaw
double getDoubleRaw(int index) -
setRaw
-
get
E get() -
get
-
get
-
get
-
get
-
set
-
getInt
int getInt() -
getInt
int getInt(int arg1) -
getInt
int getInt(int arg1, int arg2) -
getInt
int getInt(int arg1, int arg2, int arg3, int... rest) -
getInt
int getInt(int[] args) -
getRowMajor
-
asImmutable
-
getLowBound
int getLowBound(int dim) Get the least dimension along the specified dimension. -
getSize
int getSize(int dim) Get length along specified dimension. -
getSize
int getSize()Total number of elements. Same as the product of getSize(S) for all S.
-