public final class ArrayVlen<T> extends Array<Array<T>>
| Modifier and Type | Method and Description |
|---|---|
static <T> StorageMutable<Array<T>> |
createStorage(ArrayType dataType,
int length,
Object dataArray)
Creates storage for a Vlen of type dataType, and the given length and primitive array like double[][].
|
protected ArrayVlen<T> |
createView(ucar.array.IndexFn view)
create new Array with given IndexFn and the same backing store
|
static Object |
createVlenArray(ArrayType dataType,
int length)
Creates primitive array like double[length][] for a Vlen of type dataType, and the given length.
|
static <T> ArrayVlen<T> |
factory(ArrayType dataType,
int[] shape)
Creates a Vlen of type dataType, and the given shape.
|
static <T> ArrayVlen<T> |
factory(ArrayType dataType,
int[] shape,
Object storage)
Creates a Vlen of type dataType, and the given shape and primitive array like double[][].
|
Array<T> |
get(Index index)
Get the element indicated by Index.
|
Array<T> |
get(int... index)
Get the element indicated by the list of multidimensional indices.
|
boolean |
isVlen()
Is variable length and will be represented by Vlen<T>
|
Iterator<Array<T>> |
iterator()
Iterates in canonical order over all the elements of the Array.
|
void |
set(int index,
Object value)
Set the ith value
|
equals, getArrayType, getIndex, getRank, getScalar, getSection, getShape, hashCode, length, show, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static <T> ArrayVlen<T> factory(ArrayType dataType, int[] shape)
public static <T> ArrayVlen<T> factory(ArrayType dataType, int[] shape, Object storage)
public static <T> StorageMutable<Array<T>> createStorage(ArrayType dataType, int length, Object dataArray)
public static Object createVlenArray(ArrayType dataType, int length)
public boolean isVlen()
Arraypublic Iterator<Array<T>> iterator()
Arraypublic Array<T> get(int... index)
Arraypublic Array<T> get(Index index)
Arraypublic void set(int index,
Object value)
index - 1d indexvalue - must be primitive array of T, eg double[] of any length.