pub trait TensorCompareConst {
    type Compare: TensorInstance;

    // Required methods
    fn eq_const(self, other: Number) -> TCResult<Self::Compare>;
    fn gt_const(self, other: Number) -> TCResult<Self::Compare>;
    fn ge_const(self, other: Number) -> TCResult<Self::Compare>;
    fn lt_const(self, other: Number) -> TCResult<Self::Compare>;
    fn le_const(self, other: Number) -> TCResult<Self::Compare>;
    fn ne_const(self, other: Number) -> TCResult<Self::Compare>;
}
Expand description

Tensor-constant comparison operations

Required Associated Types§

source

type Compare: TensorInstance

The result of a comparison operation

Required Methods§

source

fn eq_const(self, other: Number) -> TCResult<Self::Compare>

Element-wise equality

source

fn gt_const(self, other: Number) -> TCResult<Self::Compare>

Element-wise greater-than

source

fn ge_const(self, other: Number) -> TCResult<Self::Compare>

Element-wise greater-or-equal

source

fn lt_const(self, other: Number) -> TCResult<Self::Compare>

Element-wise less-than

source

fn le_const(self, other: Number) -> TCResult<Self::Compare>

Element-wise less-or-equal

source

fn ne_const(self, other: Number) -> TCResult<Self::Compare>

Element-wise not-equal

Implementors§

source§

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

§

type Compare = DenseView<Txn, FE>

source§

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

§

type Compare = Tensor<Txn, FE>

source§

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

§

type Compare = SparseView<Txn, FE>

source§

impl<Txn, FE, A> TensorCompareConst for DenseTensor<Txn, FE, A>
where Txn: ThreadSafe, FE: ThreadSafe, A: DenseInstance + Into<DenseAccessCast<Txn, FE>>,

§

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

source§

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

§

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