pub trait NDArrayCompareScalar: NDArray + Sized {
    type Output: Access<u8>;

    // Required methods
    fn eq_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn gt_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn ge_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn lt_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn le_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn ne_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
}
Expand description

Array-scalar comparison operations

Required Associated Types§

Required Methods§

source

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

Construct an equality comparison with the other value.

source

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

Construct a greater-than comparison with the other value.

source

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

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

source

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

Construct a less-than comparison with the other value.

source

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

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

source

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

Construct an not-equal comparison with the other value.

Object Safety§

This trait is not object safe.

Implementors§