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 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

      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)
    • asImmutable

      Array<E> 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.