OpAllCloseAPI

Trait OpAllCloseAPI 

Source
pub trait OpAllCloseAPI<TA, TB, TE, D>:
    DeviceAPI<TA>
    + DeviceAPI<TB>
    + DeviceAPI<bool>
where D: DimAPI,
{ // Required methods fn allclose_all( &self, a: &Self::Raw, la: &Layout<D>, b: &Self::Raw, lb: &Layout<D>, isclose_args: &IsCloseArgs<TE>, ) -> Result<bool, Error>; fn allclose_axes( &self, a: &Self::Raw, la: &Layout<D>, b: &Self::Raw, lb: &Layout<D>, axes: &[isize], isclose_args: &IsCloseArgs<TE>, ) -> Result<(Storage<DataOwned<Self::Raw>, bool, Self>, Layout<Vec<usize>>), Error>; }

Required Methods§

Source

fn allclose_all( &self, a: &Self::Raw, la: &Layout<D>, b: &Self::Raw, lb: &Layout<D>, isclose_args: &IsCloseArgs<TE>, ) -> Result<bool, Error>

Source

fn allclose_axes( &self, a: &Self::Raw, la: &Layout<D>, b: &Self::Raw, lb: &Layout<D>, axes: &[isize], isclose_args: &IsCloseArgs<TE>, ) -> Result<(Storage<DataOwned<Self::Raw>, bool, Self>, Layout<Vec<usize>>), Error>

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§

Source§

impl<TA, TB, TE, D> OpAllCloseAPI<TA, TB, TE, D> for DeviceOpenBLAS
where TA: Clone + Send + Sync + DTypePromoteAPI<TB>, TB: Clone + Send + Sync, <TA as DTypePromoteAPI<TB>>::Res: ExtNum<AbsOut: DTypeCastAPI<TE>>, TE: ExtFloat + Add<TE, Output = TE> + Mul<TE, Output = TE> + PartialOrd + Clone + Send + Sync, D: DimAPI,

Source§

impl<TA, TB, TE, D> OpAllCloseAPI<TA, TB, TE, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB>, TB: Clone, <TA as DTypePromoteAPI<TB>>::Res: ExtNum, <<TA as DTypePromoteAPI<TB>>::Res as ExtNum>::AbsOut: DTypeCastAPI<TE>, TE: ExtFloat + Add<Output = TE> + Mul<Output = TE> + PartialOrd + Clone, D: DimAPI,