gnu.lists
Interface Array
- BitVector, F32Vector, F64Vector, FString, FVector, GeneralArray, GeneralArray1, S16Vector, S32Vector, S64Vector, S8Vector, SimpleVector, U16Vector, U32Vector, U64Vector, U8Vector
General interface to arrays of arbitrary dimension.
Object | get(int[] indexes)
|
int | getEffectiveIndex(int[] indexes)
|
int | getLowBound(int dim) - Get the least dimension along the specified dimension.
|
Object | getRowMajor(int index)
|
int | getSize(int dim) - Get length along specified dimension.
|
boolean | isEmpty()
|
int | rank() - Get the rank (number of dimensions) of this array.
|
Object | set(int[] indexes, Object value)
|
Array | transpose(int[] lowBounds, int[] dimensions, int offset0, int[] factors)
|
get
public Object get(int[] indexes)
getEffectiveIndex
public int getEffectiveIndex(int[] indexes)
getLowBound
public int getLowBound(int dim)
Get the least dimension along the specified dimension.
getRowMajor
public Object getRowMajor(int index)
getSize
public int getSize(int dim)
Get length along specified dimension.
isEmpty
public boolean isEmpty()
rank
public 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.
set
public Object set(int[] indexes,
Object value)
transpose
public Array transpose(int[] lowBounds,
int[] dimensions,
int offset0,
int[] factors)