OpAllCloseAPI

Trait OpAllCloseAPI 

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

Required Methods§

Source

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

Source

fn allclose_axes( &self, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<D>, b: &<Self as DeviceRawAPI<TB>>::Raw, lb: &Layout<D>, axes: &[isize], isclose_args: &IsCloseArgs<TE>, ) -> Result<(Storage<DataOwned<<Self as DeviceRawAPI<bool>>::Raw>, bool, Self>, Layout<IxD>)>

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 DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB>, TB: Clone, <TA as DTypePromoteAPI<TB>>::Res: ExtNum<AbsOut: DTypeCastAPI<TE>>, TE: ExtFloat + Add<TE, Output = TE> + Mul<TE, Output = TE> + PartialOrd + Clone, D: DimAPI,

Source§

impl<TA, TB, TE, D> OpAllCloseAPI<TA, TB, TE, D> for DeviceFaer
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,