Skip to main content

NDArrayCompareScalar

Trait NDArrayCompareScalar 

Source
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>
       where Self::DType: Real;
    fn ge_scalar(
        self,
        other: Self::DType,
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
       where Self::DType: Real;
    fn lt_scalar(
        self,
        other: Self::DType,
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
       where Self::DType: Real;
    fn le_scalar(
        self,
        other: Self::DType,
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
       where Self::DType: Real;
    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>
where Self::DType: Real,

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>
where Self::DType: Real,

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>
where Self::DType: Real,

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>
where Self::DType: Real,

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§