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 TypeMethodDescriptionint
int
effectiveIndex
(int index) int
effectiveIndex
(int[] indexes) int
effectiveIndex
(int i, int j) int
effectiveIndex
(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) boolean
getBooleanRaw
(int index) byte
getByteRaw
(int index) char
getCharRaw
(int index) double
getDoubleRaw
(int index) int
float
getFloatRaw
(int index) int
getInt()
int
getInt
(int arg1) int
getInt
(int[] args) int
getInt
(int arg1, int arg2) int
getInt
(int arg1, int arg2, int arg3, int... rest) int
getIntRaw
(int index) long
getLongRaw
(int index) int
getLowBound
(int dim) Get the least dimension along the specified dimension.getRaw
(int index) Given an "effective index", return element as object.getRowMajor
(int index) short
getShortRaw
(int index) int
getSize()
Total number of elements.int
getSize
(int dim) Get length along specified dimension.boolean
isEmpty()
int
rank()
Get the rank (number of dimensions) of this array.void
void
-
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.
-