Public Methods
FloatDataBuffer |
buffer()
|
FloatNdArray | |
static FloatNdArray | |
float |
getFloat(long... indices)
Returns the float value of the scalar found at the given coordinates.
|
FloatNdArray |
read(FloatDataBuffer dst)
|
FloatNdArray |
setFloat(float value, long... indices)
Assigns the float value of the scalar found at the given coordinates.
|
FloatNdArray |
write(FloatDataBuffer src)
|
Inherited Methods
NdArraySequence<FloatNdArray> |
elements(int dimensionIdx)
|
boolean |
equals(Object obj)
|
FloatNdArray |
get(long... coords)
|
Float |
getObject(long... coords)
|
int |
hashCode()
|
FloatNdArray |
read(DataBuffer<Float> dst)
|
FloatNdArray | |
FloatNdArray |
setObject(Float value, long... coords)
|
FloatNdArray |
slice(long position, DimensionalSpace sliceDimensions)
|
FloatNdArray | |
FloatNdArray |
write(DataBuffer<Float> src)
|
DimensionalSpace | |
boolean |
equals(Object obj)
|
int |
hashCode()
|
NdArraySequence<FloatNdArray> |
scalars()
Returns a sequence of all scalars in this array.
|
Shape |
shape()
|
abstract FloatNdArray |
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<Float> | |
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<Float> |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract Float |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract NdArray<Float> |
read(DataBuffer<Float> 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<Float> | |
abstract NdArray<Float> |
setObject(Float value, long... coordinates)
Assigns the value of the scalar found at the given coordinates.
|
abstract NdArray<Float> | |
abstract NdArray<Float> |
abstract FloatNdArray | |
abstract NdArraySequence<FloatNdArray> |
elements(int dimensionIdx)
Returns a sequence of all elements at a given dimension.
|
abstract FloatNdArray |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract float |
getFloat(long... coordinates)
Returns the float value of the scalar found at the given coordinates.
|
abstract Float |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract FloatNdArray |
read(FloatDataBuffer dst)
|
abstract FloatNdArray |
read(DataBuffer<Float> dst)
|
abstract NdArraySequence<FloatNdArray> |
scalars()
Returns a sequence of all scalars in this array.
|
abstract FloatNdArray | |
abstract FloatNdArray |
setFloat(float value, long... coordinates)
Assigns the float value of the scalar found at the given coordinates.
|
abstract FloatNdArray |
setObject(Float value, long... coordinates)
|
abstract FloatNdArray | |
abstract FloatNdArray |
write(DataBuffer<Float> src)
|
abstract FloatNdArray |
write(FloatDataBuffer src)
|
abstract NdArray<Float> | |
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<Float> |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract Float |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract NdArray<Float> |
read(DataBuffer<Float> 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<Float> | |
abstract NdArray<Float> |
setObject(Float value, long... coordinates)
Assigns the value of the scalar found at the given coordinates.
|
abstract NdArray<Float> | |
abstract NdArray<Float> |
Public Methods
public float getFloat (long... indices)
Returns the float 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:
FloatNdArray matrix = NdArrays.ofFloats(shape(2, 2)); // matrix rank = 2
matrix.getFloat(0, 1); // succeeds, returns 0.0f
matrix.getFloat(0); // throws IllegalRankException
FloatNdArray scalar = matrix.get(0, 1); // scalar rank = 0
scalar.getFloat(); // succeeds, returns 0.0f
Parameters
indices | coordinates of the scalar to resolve |
---|
Returns
- value of that scalar
public FloatNdArray setFloat (float value, long... indices)
Assigns the float 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:
FloatNdArray matrix = NdArrays.ofFloats(shape(2, 2)); // matrix rank = 2
matrix.setFloat(10.0f, 0, 1); // succeeds
matrix.setFloat(10.0f, 0); // throws IllegalRankException
FloatNdArray scalar = matrix.get(0, 1); // scalar rank = 0
scalar.setFloat(10.0f); // succeeds
Parameters
value | value to assign |
---|---|
indices | coordinates of the scalar to assign |
Returns
- this array