T
- the storage type.public class ObjectArray<T> extends ProtoArray<ObjectArray<T>,T[],T>
Array.IndexingOrder
dims, order, strides, values
Modifier | Constructor and Description |
---|---|
|
ObjectArray(Class<T> clazz,
Array.IndexingOrder order,
int... dims)
Alternate constructor.
|
protected |
ObjectArray(Class<T> clazz,
Array.IndexingOrder order,
int[] dims,
int[] strides)
Internal constructor for package use only.
|
|
ObjectArray(Class<T> clazz,
int... dims)
Default constructor.
|
protected |
ObjectArray(int unused,
Class<T> clazz,
Array.IndexingOrder order,
int[] dims)
Internal constructor with a distinctive signature.
|
protected |
ObjectArray(int unused,
T[] values,
Array.IndexingOrder order,
int[] dims)
Internal constructor with a distinctive signature.
|
|
ObjectArray(ObjectArray<T> array)
Alternate constructor.
|
|
ObjectArray(T[] values,
Array.IndexingOrder order,
int... dims)
Alternate constructor.
|
|
ObjectArray(T[] values,
int... dims)
Alternate constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
get(int... s)
Gets the value at the given logical index.
|
byte[] |
getBytes()
Converts this array into
byte s. |
Class<T> |
getComponentType()
Gets the component type.
|
IntegerArray |
iSort(int dim)
Sorts along the given dimension.
|
void |
set(T value,
int... s)
Sets the value at the given logical index.
|
T |
singleton()
Gets the singleton value from this array.
|
String |
toString()
Creates a human-readable representation of this array.
|
protected ObjectArray<T> |
wrap(Array.IndexingOrder order,
int[] dims,
int[] strides)
Allocates a new array.
|
protected ObjectArray<T> |
wrap(T value,
Array.IndexingOrder order,
int[] dims,
int[] strides)
Allocates a new array initialized to the given value.
|
public ObjectArray(Class<T> clazz, Array.IndexingOrder order, int... dims)
protected ObjectArray(int unused, Class<T> clazz, Array.IndexingOrder order, int[] dims)
public ObjectArray(T[] values, int... dims)
public ObjectArray(T[] values, Array.IndexingOrder order, int... dims)
public ObjectArray(ObjectArray<T> array)
protected ObjectArray(int unused, T[] values, Array.IndexingOrder order, int[] dims)
protected ObjectArray(Class<T> clazz, Array.IndexingOrder order, int[] dims, int[] strides)
protected ObjectArray<T> wrap(Array.IndexingOrder order, int[] dims, int[] strides)
ProtoArray
wrap
in class ProtoArray<ObjectArray<T>,T[],T>
order
- the storage order.dims
- the dimensions.strides
- the strides.protected ObjectArray<T> wrap(T value, Array.IndexingOrder order, int[] dims, int[] strides)
ProtoArray
wrap
in class ProtoArray<ObjectArray<T>,T[],T>
value
- the initial value.order
- the storage order.dims
- the dimensions.strides
- the strides.public Class<T> getComponentType()
Array
public T get(int... s)
public void set(T value, int... s)
public byte[] getBytes()
ProtoArray
byte
s.getBytes
in class ProtoArray<ObjectArray<T>,T[],T>
byte
s.public String toString()
Array
public IntegerArray iSort(int dim)
public T singleton()