Trait ha_ndarray::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>;
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§
sourcefn eq_scalar(
self,
other: Self::DType
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn eq_scalar( self, other: Self::DType ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Construct an equality comparison with the other
value.
sourcefn gt_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>
Construct a greater-than comparison with the other
value.
sourcefn ge_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>
Construct an equal-or-greater-than comparison with the other
value.
sourcefn lt_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>
Construct a less-than comparison with the other
value.
Object Safety§
This trait is not object safe.