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
type Combine: TensorInstance
type Combine: TensorInstance
The return type of a boolean operation.
The return type of a boolean operation with a result expected to be dense.
Required Methods
fn or_const(self, other: Number) -> TCResult<Self::DenseCombine>
fn or_const(self, other: Number) -> TCResult<Self::DenseCombine>
Logical or
fn xor_const(self, other: Number) -> TCResult<Self::DenseCombine>
fn xor_const(self, other: Number) -> TCResult<Self::DenseCombine>
Logical xor