pub trait NDArrayCompare<O: NDArray<DType = Self::DType>>: NDArray + Sized {
    // Provided methods
    fn eq(
        self,
        other: O
    ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error> { ... }
    fn gt(
        self,
        other: O
    ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error> { ... }
    fn ge(
        self,
        other: O
    ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error> { ... }
    fn lt(
        self,
        other: O
    ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error> { ... }
    fn le(
        self,
        other: O
    ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error> { ... }
    fn ne(
        self,
        other: O
    ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error> { ... }
}
Expand description

Array comparison operations

Provided Methods§

source

fn eq( self, other: O ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error>

Construct an equality comparison with the other array.

source

fn gt( self, other: O ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error>

Construct a greater-than comparison with the other array.

source

fn ge( self, other: O ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error>

Construct an equal-or-greater-than comparison with the other array.

source

fn lt( self, other: O ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error>

Construct an equal-or-less-than comparison with the other array.

source

fn le( self, other: O ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error>

Construct an equal-or-less-than comparison with the other array.

source

fn ne( self, other: O ) -> Result<ArrayOp<ArrayCompare<Self::DType, Self, O>>, Error>

Construct an not-equal comparison with the other array.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<A: NDArray, O> NDArrayCompare<O> for Awhere O: NDArray<DType = A::DType> + NDArray,