pub trait TensorBooleanConst {
    type Combine: TensorInstance;

    // Required methods
    fn and_const(self, other: Number) -> TCResult<Self::Combine>;
    fn or_const(self, other: Number) -> TCResult<Self::Combine>;
    fn xor_const(self, other: Number) -> TCResult<Self::Combine>;
}
Expand description

Tensor boolean operations in relation to a constant.

Required Associated Types§

source

type Combine: TensorInstance

The return type of a boolean operation.

Required Methods§

source

fn and_const(self, other: Number) -> TCResult<Self::Combine>

Logical and

source

fn or_const(self, other: Number) -> TCResult<Self::Combine>

Logical or

source

fn xor_const(self, other: Number) -> TCResult<Self::Combine>

Logical xor

Implementors§

source§

impl<Txn, FE> TensorBooleanConst for DenseView<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node> + Clone,

§

type Combine = DenseView<Txn, FE>

source§

impl<Txn, FE> TensorBooleanConst for Tensor<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node> + Clone,

§

type Combine = Tensor<Txn, FE>

source§

impl<Txn, FE> TensorBooleanConst for SparseView<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node> + Clone,

§

type Combine = SparseView<Txn, FE>

source§

impl<Txn, FE, A> TensorBooleanConst for DenseTensor<Txn, FE, A>
where Txn: ThreadSafe, FE: ThreadSafe, A: DenseInstance + Into<DenseAccess<Txn, FE, A::DType>>, DenseAccessCast<Txn, FE>: From<DenseAccess<Txn, FE, A::DType>>,

§

type Combine = DenseTensor<Txn, FE, DenseCompareConst<Txn, FE, u8>>

source§

impl<Txn, FE, A> TensorBooleanConst for SparseTensor<Txn, FE, A>
where Txn: Transaction<FE>, FE: AsType<Node> + ThreadSafe, A: SparseInstance + Into<SparseAccess<Txn, FE, A::DType>>, DenseAccess<Txn, FE, A::DType>: From<DenseSparse<A>>, DenseAccessCast<Txn, FE>: From<DenseAccess<Txn, FE, A::DType>>, SparseAccessCast<Txn, FE>: From<SparseAccess<Txn, FE, A::DType>>,

§

type Combine = SparseTensor<Txn, FE, SparseCompareConst<Txn, FE, u8>>