Trait NDArrayCompare

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§