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§
Sourcefn eq(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn eq(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Elementwise equality comparison
Sourcefn ge(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn ge(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Elementwise greater-than-or-equal comparison
Sourcefn gt(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn gt(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Elementwise greater-than comparison
Sourcefn le(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn le(self, other: O) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Elementwise less-than-or-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.