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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Array<E>asImmutable()inteffectiveIndex()inteffectiveIndex(int index)inteffectiveIndex(int[] indexes)inteffectiveIndex(int i, int j)inteffectiveIndex(int i, int j, int k, int... rest)Eget()Eget(int i)Eget(int[] indexes)Eget(int i, int j)Eget(int i, int j, int k, int... rest)booleangetBooleanRaw(int index)bytegetByteRaw(int index)chargetCharRaw(int index)doublegetDoubleRaw(int index)intgetElementKind()floatgetFloatRaw(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.EgetRaw(int index)Given an "effective index", return element as object.EgetRowMajor(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.voidset(int[] indexes, E value)voidsetRaw(int index, E value)
-
-
-
Method Detail
-
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
E getRaw(int index)
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
void setRaw(int index, E value)
-
get
E get()
-
get
E get(int i)
-
get
E get(int i, int j)
-
get
E get(int i, int j, int k, int... rest)
-
get
E get(int[] indexes)
-
set
void set(int[] indexes, E value)
-
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
E getRowMajor(int index)
-
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.
-
-