pub trait NDArrayCompare<O: NDArray<DType = Self::DType>>: NDArray + Sized {
    type Output: Access<u8>;

    // Required methods
    fn eq(
        self,
        other: O
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn ge(
        self,
        other: O
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn gt(
        self,
        other: O
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn le(
        self,
        other: O
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn lt(
        self,
        other: O
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn ne(
        self,
        other: O
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
}
Expand description

Array comparison operations

Required Associated Types§

Required Methods§

source

fn eq(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Elementwise equality comparison

source

fn ge(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Elementwise greater-than-or-equal comparison

source

fn gt(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Elementwise greater-than comparison

source

fn le(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Elementwise less-than-or-equal comparison

source

fn lt(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Elementwise less-than comparison

source

fn ne(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Elementwise not-equal comparison

Object Safety§

This trait is not object safe.

Implementors§