Public Methods
ByteNdArray | |
static ByteNdArray | |
byte |
getByte(long... indices)
Returns the byte value of the scalar found at the given coordinates.
|
ByteNdArray |
read(ByteDataBuffer dst)
|
ByteNdArray |
setByte(byte value, long... indices)
Assigns the byte value of the scalar found at the given coordinates.
|
ByteNdArray |
write(ByteDataBuffer src)
|
Inherited Methods
NdArraySequence<ByteNdArray> |
elements(int dimensionIdx)
|
boolean |
equals(Object obj)
|
ByteNdArray |
get(long... coords)
|
Byte |
getObject(long... coords)
|
int |
hashCode()
|
ByteNdArray |
read(DataBuffer<Byte> dst)
|
ByteNdArray | |
ByteNdArray |
setObject(Byte value, long... coords)
|
ByteNdArray |
slice(long position, DimensionalSpace sliceDimensions)
|
ByteNdArray | |
ByteNdArray |
write(DataBuffer<Byte> src)
|
DimensionalSpace | |
boolean |
equals(Object obj)
|
int |
hashCode()
|
NdArraySequence<ByteNdArray> |
scalars()
Returns a sequence of all scalars in this array.
|
Shape |
shape()
|
abstract ByteNdArray |
slice(long position, DimensionalSpace dimensions)
|
boolean |
equals(Object arg0)
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
abstract NdArray<Byte> | |
abstract NdArraySequence<? extends NdArray<T>> |
elements(int dimensionIdx)
Returns a sequence of all elements at a given dimension.
|
abstract boolean |
equals(Object obj)
Checks equality between n-dimensional arrays.
|
abstract NdArray<Byte> |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract Byte |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract NdArray<Byte> |
read(DataBuffer<Byte> dst)
Read the content of this N-dimensional array into the destination buffer.
|
abstract NdArraySequence<? extends NdArray<T>> |
scalars()
Returns a sequence of all scalars in this array.
|
abstract NdArray<Byte> | |
abstract NdArray<Byte> |
setObject(Byte value, long... coordinates)
Assigns the value of the scalar found at the given coordinates.
|
abstract NdArray<Byte> | |
abstract NdArray<Byte> |
abstract ByteNdArray | |
abstract NdArraySequence<ByteNdArray> |
elements(int dimensionIdx)
Returns a sequence of all elements at a given dimension.
|
abstract ByteNdArray |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract byte |
getByte(long... coordinates)
Returns the byte value of the scalar found at the given coordinates.
|
abstract Byte |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract ByteNdArray |
read(DataBuffer<Byte> dst)
|
abstract ByteNdArray |
read(ByteDataBuffer dst)
|
abstract NdArraySequence<ByteNdArray> |
scalars()
Returns a sequence of all scalars in this array.
|
abstract ByteNdArray | |
abstract ByteNdArray |
setByte(byte value, long... coordinates)
Assigns the byte value of the scalar found at the given coordinates.
|
abstract ByteNdArray |
setObject(Byte value, long... coordinates)
|
abstract ByteNdArray | |
abstract ByteNdArray |
write(ByteDataBuffer src)
|
abstract ByteNdArray |
write(DataBuffer<Byte> src)
|
abstract NdArray<Byte> | |
abstract NdArraySequence<? extends NdArray<T>> |
elements(int dimensionIdx)
Returns a sequence of all elements at a given dimension.
|
abstract boolean |
equals(Object obj)
Checks equality between n-dimensional arrays.
|
abstract NdArray<Byte> |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract Byte |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract NdArray<Byte> |
read(DataBuffer<Byte> dst)
Read the content of this N-dimensional array into the destination buffer.
|
abstract NdArraySequence<? extends NdArray<T>> |
scalars()
Returns a sequence of all scalars in this array.
|
abstract NdArray<Byte> | |
abstract NdArray<Byte> |
setObject(Byte value, long... coordinates)
Assigns the value of the scalar found at the given coordinates.
|
abstract NdArray<Byte> | |
abstract NdArray<Byte> |
Public Methods
public byte getByte (long... indices)
Returns the byte value of the scalar found at the given coordinates.
To access the scalar element, the number of coordinates provided must be equal to the number of dimensions of this array (i.e. its rank). For example:
ByteNdArray matrix = NdArrays.ofBytes(shape(2, 2)); // matrix rank = 2
matrix.getByte(0, 1); // succeeds, returns 0
matrix.getByte(0); // throws IllegalRankException
ByteNdArray scalar = matrix.get(0, 1); // scalar rank = 0
scalar.getByte(); // succeeds, returns 0
Parameters
indices | coordinates of the scalar to resolve |
---|
Returns
- value of that scalar
public ByteNdArray setByte (byte value, long... indices)
Assigns the byte value of the scalar found at the given coordinates.
To access the scalar element, the number of coordinates provided must be equal to the number of dimensions of this array (i.e. its rank). For example:
ByteNdArray matrix = NdArrays.ofBytes(shape(2, 2)); // matrix rank = 2
matrix.setByte(10, 0, 1); // succeeds
matrix.setByte(10, 0); // throws IllegalRankException
ByteNdArray scalar = matrix.get(0, 1); // scalar rank = 0
scalar.setByte(10); // succeeds
Parameters
value | the value to assign |
---|---|
indices | coordinates of the scalar to assign |
Returns
- this array