gnu.lists

Interface Array

public interface Array

General interface to arrays of arbitrary dimension.
Method Summary
Objectget(int[] indexes)
intgetEffectiveIndex(int[] indexes)
intgetLowBound(int dim)
Get the least dimension along the specified dimension.
ObjectgetRowMajor(int index)
intgetSize(int dim)
Get length along specified dimension.
booleanisEmpty()
intrank()
Get the rank (number of dimensions) of this array.
Objectset(int[] indexes, Object value)
Arraytranspose(int[] lowBounds, int[] dimensions, int offset0, int[] factors)

Method Detail

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)