Trait tc_tensor::TensorBooleanConst
source · pub trait TensorBooleanConst {
type Combine: TensorInstance;
type DenseCombine: TensorInstance;
fn and_const(self, other: Number) -> TCResult<Self::Combine>;
fn or_const(self, other: Number) -> TCResult<Self::DenseCombine>;
fn xor_const(self, other: Number) -> TCResult<Self::DenseCombine>;
}
Expand description
Tensor
boolean operations in relation to a constant.
Required Associated Types§
sourcetype Combine: TensorInstance
type Combine: TensorInstance
The return type of a boolean operation.
sourcetype DenseCombine: TensorInstance
type DenseCombine: TensorInstance
The return type of a boolean operation with a result expected to be dense.
Required Methods§
sourcefn or_const(self, other: Number) -> TCResult<Self::DenseCombine>
fn or_const(self, other: Number) -> TCResult<Self::DenseCombine>
Logical or
sourcefn xor_const(self, other: Number) -> TCResult<Self::DenseCombine>
fn xor_const(self, other: Number) -> TCResult<Self::DenseCombine>
Logical xor