public class
BooleanDenseNdArray
Public Methods
BooleanNdArray | |
static BooleanNdArray | |
boolean |
getBoolean(long... indices)
Returns the boolean value of the scalar found at the given coordinates.
|
BooleanNdArray |
read(BooleanDataBuffer dst)
|
BooleanNdArray |
setBoolean(boolean value, long... indices)
Assigns the boolean value of the scalar found at the given coordinates.
|
BooleanNdArray |
write(BooleanDataBuffer src)
|
Inherited Methods
From class
org.tensorflow.ndarray.impl.dense.AbstractDenseNdArray
NdArraySequence<BooleanNdArray> |
elements(int dimensionIdx)
|
boolean |
equals(Object obj)
|
BooleanNdArray |
get(long... coords)
|
Boolean |
getObject(long... coords)
|
int |
hashCode()
|
BooleanNdArray |
read(DataBuffer<Boolean> dst)
|
BooleanNdArray | |
BooleanNdArray |
setObject(Boolean value, long... coords)
|
BooleanNdArray |
slice(long position, DimensionalSpace sliceDimensions)
|
BooleanNdArray | |
BooleanNdArray |
write(DataBuffer<Boolean> src)
|
From class
org.tensorflow.ndarray.impl.AbstractNdArray
DimensionalSpace | |
boolean |
equals(Object obj)
|
int |
hashCode()
|
NdArraySequence<BooleanNdArray> |
scalars()
Returns a sequence of all scalars in this array.
|
Shape |
shape()
|
abstract BooleanNdArray |
slice(long position, DimensionalSpace dimensions)
|
From class
java.lang.Object
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()
|
From interface
org.tensorflow.ndarray.NdArray
abstract NdArray<Boolean> | |
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<Boolean> |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract Boolean |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract NdArray<Boolean> |
read(DataBuffer<Boolean> 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<Boolean> | |
abstract NdArray<Boolean> |
setObject(Boolean value, long... coordinates)
Assigns the value of the scalar found at the given coordinates.
|
abstract NdArray<Boolean> | |
abstract NdArray<Boolean> |
write(DataBuffer<Boolean> src)
Write the content of this N-dimensional array from the source buffer.
|
From interface
org.tensorflow.ndarray.BooleanNdArray
abstract BooleanNdArray | |
abstract NdArraySequence<BooleanNdArray> |
elements(int dimensionIdx)
Returns a sequence of all elements at a given dimension.
|
abstract BooleanNdArray |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract boolean |
getBoolean(long... coordinates)
Returns the boolean value of the scalar found at the given coordinates.
|
abstract Boolean |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract BooleanNdArray |
read(DataBuffer<Boolean> dst)
|
abstract BooleanNdArray |
read(BooleanDataBuffer dst)
|
abstract NdArraySequence<BooleanNdArray> |
scalars()
Returns a sequence of all scalars in this array.
|
abstract BooleanNdArray | |
abstract BooleanNdArray |
setBoolean(boolean value, long... coordinates)
Assigns the boolean value of the scalar found at the given coordinates.
|
abstract BooleanNdArray |
setObject(Boolean value, long... coordinates)
|
abstract BooleanNdArray | |
abstract BooleanNdArray |
write(DataBuffer<Boolean> src)
|
abstract BooleanNdArray |
write(BooleanDataBuffer src)
|
From interface
org.tensorflow.ndarray.Shaped
From interface
org.tensorflow.ndarray.NdArray
abstract NdArray<Boolean> | |
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<Boolean> |
get(long... coordinates)
Returns the N-dimensional element of this array at the given coordinates.
|
abstract Boolean |
getObject(long... coordinates)
Returns the value of the scalar found at the given coordinates.
|
abstract NdArray<Boolean> |
read(DataBuffer<Boolean> 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<Boolean> | |
abstract NdArray<Boolean> |
setObject(Boolean value, long... coordinates)
Assigns the value of the scalar found at the given coordinates.
|
abstract NdArray<Boolean> | |
abstract NdArray<Boolean> |
write(DataBuffer<Boolean> src)
Write the content of this N-dimensional array from the source buffer.
|
Public Methods
public boolean getBoolean (long... indices)
Returns the boolean 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:
BooleanNdArray matrix = NdArrays.ofBooleans(shape(2, 2)); // matrix rank = 2
matrix.getBoolean(0, 1); // succeeds, returns false
matrix.getBoolean(0); // throws IllegalRankException
BooleanNdArray scalar = matrix.get(0, 1); // scalar rank = 0
scalar.getBoolean(); // succeeds, returns false
Parameters
indices | coordinates of the scalar to resolve |
---|
Returns
- value of that scalar