public interface BooleanTensor extends Tensor<java.lang.Boolean>
Tensor.FlattenedView<T>
SCALAR_SHAPE, SCALAR_STRIDE
Modifier and Type | Method and Description |
---|---|
boolean |
allFalse() |
boolean |
allTrue() |
BooleanTensor |
and(BooleanTensor that) |
BooleanTensor |
andInPlace(BooleanTensor that) |
static BooleanTensor |
create(boolean[] values) |
static BooleanTensor |
create(boolean[] values,
int[] shape) |
static BooleanTensor |
create(boolean value,
int[] shape) |
BooleanTensor |
not() |
BooleanTensor |
notInPlace() |
BooleanTensor |
or(BooleanTensor that) |
BooleanTensor |
orInPlace(BooleanTensor that) |
static BooleanTensor |
placeHolder(int[] shape) |
static BooleanTensor |
scalar(boolean scalarValue) |
BooleanTensor |
setBooleanIf(BooleanTensor trueValue,
BooleanTensor falseValue) |
DoubleTensor |
setDoubleIf(DoubleTensor trueValue,
DoubleTensor falseValue) |
<T> Tensor<T> |
setIf(Tensor<T> trueValue,
Tensor<T> falseValue) |
IntegerTensor |
setIntegerIf(IntegerTensor trueValue,
IntegerTensor falseValue) |
DoubleTensor |
toDoubleMask() |
IntegerTensor |
toIntegerMask() |
asFlatArray, asFlatDoubleArray, asFlatIntegerArray, asFlatList, duplicate, elementwiseEquals, elementwiseEquals, getFlattenedView, getLength, getRank, getShape, getValue, hasSameShapeAs, hasSameShapeAs, isMatrix, isScalar, isShapePlaceholder, isVector, scalar, setValue
static BooleanTensor create(boolean value, int[] shape)
static BooleanTensor create(boolean[] values, int[] shape)
static BooleanTensor create(boolean[] values)
static BooleanTensor scalar(boolean scalarValue)
static BooleanTensor placeHolder(int[] shape)
placeHolder
in interface Tensor<java.lang.Boolean>
BooleanTensor and(BooleanTensor that)
BooleanTensor or(BooleanTensor that)
BooleanTensor not()
DoubleTensor setDoubleIf(DoubleTensor trueValue, DoubleTensor falseValue)
IntegerTensor setIntegerIf(IntegerTensor trueValue, IntegerTensor falseValue)
BooleanTensor setBooleanIf(BooleanTensor trueValue, BooleanTensor falseValue)
BooleanTensor andInPlace(BooleanTensor that)
BooleanTensor orInPlace(BooleanTensor that)
BooleanTensor notInPlace()
boolean allTrue()
boolean allFalse()
DoubleTensor toDoubleMask()
IntegerTensor toIntegerMask()