gnu.lists
Interface Array

All Known Implementing Classes:
BitVector, F32Vector, F64Vector, FString, FVector, GeneralArray, GeneralArray1, S16Vector, S32Vector, S64Vector, S8Vector, SimpleVector, U16Vector, U32Vector, U64Vector, U8Vector

public interface Array

General interface to arrays of arbitrary dimension.


Method Summary
 java.lang.Object get(int[] indexes)
           
 int getEffectiveIndex(int[] indexes)
           
 int getLowBound(int dim)
          Get the least dimension along the specified dimension.
 java.lang.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.
 java.lang.Object set(int[] indexes, java.lang.Object value)
           
 Array transpose(int[] lowBounds, int[] dimensions, int offset0, int[] factors)
           
 

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.


getEffectiveIndex

int getEffectiveIndex(int[] indexes)

get

java.lang.Object get(int[] indexes)

set

java.lang.Object set(int[] indexes,
                     java.lang.Object value)

getRowMajor

java.lang.Object 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.


transpose

Array transpose(int[] lowBounds,
                int[] dimensions,
                int offset0,
                int[] factors)