Skip to main content

DeviceCpuSerial

Struct DeviceCpuSerial 

Source
pub struct DeviceCpuSerial {
    default_order: FlagOrder,
}

Fields§

§default_order: FlagOrder

Trait Implementations§

Source§

impl Clone for DeviceCpuSerial

Source§

fn clone(&self) -> DeviceCpuSerial

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DeviceCpuSerial

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DeviceCpuSerial

Source§

fn default() -> DeviceCpuSerial

Returns the “default value” for a type. Read more
Source§

impl DeviceBaseAPI for DeviceCpuSerial

Source§

fn same_device(&self, other: &Self) -> bool

Source§

fn default_order(&self) -> FlagOrder

Source§

fn set_default_order(&mut self, order: FlagOrder)

Source§

impl<'a, R, T, D> DeviceChangeAPI<'a, DeviceCpuSerial, R, T, D> for DeviceCpuSerial
where T: Clone + Send + Sync + 'a, D: DimAPI, R: DataCloneAPI<Data = Vec<T>>,

Source§

impl<'a, R, T, D> DeviceChangeAPI<'a, DeviceCpuSerial, R, T, D> for DeviceFaer
where T: Clone + Send + Sync + 'a, D: DimAPI, R: DataCloneAPI<Data = Vec<T>>,

Source§

type Repr = R

Source§

type ReprTo = DataRef<'a, Vec<T>>

Source§

fn change_device( tensor: TensorAny<R, T, DeviceFaer, D>, device: &DeviceCpuSerial, ) -> Result<TensorAny<Self::Repr, T, DeviceCpuSerial, D>>

Source§

fn into_device( tensor: TensorAny<R, T, DeviceFaer, D>, device: &DeviceCpuSerial, ) -> Result<TensorAny<DataOwned<Vec<T>>, T, DeviceCpuSerial, D>>

Source§

fn to_device( tensor: &'a TensorAny<R, T, DeviceFaer, D>, device: &DeviceCpuSerial, ) -> Result<TensorView<'a, T, DeviceCpuSerial, D>>

Source§

impl<'a, R, T, D> DeviceChangeAPI<'a, DeviceFaer, R, T, D> for DeviceCpuSerial
where T: Clone + Send + Sync + 'a, D: DimAPI, R: DataCloneAPI<Data = Vec<T>>,

Source§

type Repr = R

Source§

type ReprTo = DataRef<'a, Vec<T>>

Source§

fn change_device( tensor: TensorAny<R, T, DeviceCpuSerial, D>, device: &DeviceFaer, ) -> Result<TensorAny<Self::Repr, T, DeviceFaer, D>>

Source§

fn into_device( tensor: TensorAny<R, T, DeviceCpuSerial, D>, device: &DeviceFaer, ) -> Result<TensorAny<DataOwned<Vec<T>>, T, DeviceFaer, D>>

Source§

fn to_device( tensor: &'a TensorAny<R, T, DeviceCpuSerial, D>, device: &DeviceFaer, ) -> Result<TensorView<'a, T, DeviceFaer, D>>

Source§

impl<T> DeviceCreationAnyAPI<T> for DeviceCpuSerial
where Self: DeviceRawAPI<T, Raw = Vec<T>> + DeviceRawAPI<MaybeUninit<T>, Raw = Vec<MaybeUninit<T>>>,

Source§

unsafe fn empty_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Vec<T>>, T, DeviceCpuSerial>>

Safety Read more
Source§

fn full_impl( &self, len: usize, fill: T, ) -> Result<Storage<DataOwned<Vec<T>>, T, DeviceCpuSerial>>
where T: Clone,

Source§

fn outof_cpu_vec( &self, vec: Vec<T>, ) -> Result<Storage<DataOwned<Vec<T>>, T, DeviceCpuSerial>>

Source§

fn from_cpu_vec( &self, vec: &[T], ) -> Result<Storage<DataOwned<Vec<T>>, T, DeviceCpuSerial>>
where T: Clone,

Source§

fn uninit_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Vec<MaybeUninit<T>>>, MaybeUninit<T>, Self>>
where Self: DeviceRawAPI<MaybeUninit<T>>,

Source§

unsafe fn assume_init_impl( storage: Storage<DataOwned<Vec<MaybeUninit<T>>>, MaybeUninit<T>, Self>, ) -> Result<Storage<DataOwned<Vec<T>>, T, Self>>
where Self: DeviceRawAPI<MaybeUninit<T>>,

Safety Read more
Source§

impl<T> DeviceCreationArangeAPI<T> for DeviceCpuSerial
where T: PartialOrd + Clone + Add<Output = T> + Zero + 'static, DeviceCpuSerial: DeviceRawAPI<T, Raw = Vec<T>>,

Source§

fn arange_impl( &self, start: T, end: T, step: T, ) -> Result<Storage<DataOwned<Vec<T>>, T, DeviceCpuSerial>>

Source§

impl<T> DeviceCreationComplexFloatAPI<T> for DeviceCpuSerial

Source§

fn linspace_impl( &self, start: T, end: T, n: usize, endpoint: bool, ) -> Result<Storage<DataOwned<Vec<T>>, T, DeviceCpuSerial>>

Source§

impl<T> DeviceCreationNumAPI<T> for DeviceCpuSerial
where T: Num + Clone, DeviceCpuSerial: DeviceRawAPI<T, Raw = Vec<T>>,

Source§

impl<T> DeviceCreationTriAPI<T> for DeviceCpuSerial
where T: Num + Clone,

Source§

fn tril_impl<D>( &self, raw: &mut Vec<T>, layout: &Layout<D>, k: isize, ) -> Result<()>
where D: DimAPI,

Source§

fn triu_impl<D>( &self, raw: &mut Vec<T>, layout: &Layout<D>, k: isize, ) -> Result<()>
where D: DimAPI,

Source§

impl<T, D> DeviceIndexSelectAPI<T, D> for DeviceCpuSerial

Source§

fn index_select( &self, c: &mut Vec<MaybeUninit<T>>, lc: &Layout<D>, a: &Vec<T>, la: &Layout<D>, axis: usize, indices: &[usize], ) -> Result<()>

Index select on one axis.
Source§

impl<TA, TB, TC, DA, DB, DC> DeviceMatMulAPI<TA, TB, TC, DA, DB, DC> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TC>, TB: Clone + Mul<TA, Output = TC>, TC: Clone + Mul<TC, Output = TC> + Add<TC, Output = TC>, DA: DimAPI, DB: DimAPI, DC: DimAPI, Self: DeviceAPI<TA, Raw = Vec<TA>> + DeviceAPI<TB, Raw = Vec<TB>> + DeviceAPI<TC, Raw = Vec<TC>>,

Source§

fn matmul( &self, c: &mut Vec<TC>, lc: &Layout<DC>, a: &Vec<TA>, la: &Layout<DA>, b: &Vec<TB>, lb: &Layout<DB>, alpha: TC, beta: TC, ) -> Result<()>

Source§

impl<T> DeviceRawAPI<T> for DeviceCpuSerial

Source§

type Raw = Vec<T>

Source§

impl<T> DeviceStorageAPI<T> for DeviceCpuSerial

Source§

fn len<R>(storage: &Storage<R, T, Self>) -> usize
where R: DataAPI<Data = Self::Raw>,

Source§

fn to_cpu_vec<R>(storage: &Storage<R, T, Self>) -> Result<Vec<T>>
where Self::Raw: Clone, R: DataAPI<Data = Self::Raw>,

Source§

fn into_cpu_vec<R>(storage: Storage<R, T, Self>) -> Result<Vec<T>>
where Self::Raw: Clone, R: DataCloneAPI<Data = Self::Raw>,

Source§

fn get_index<R>(storage: &Storage<R, T, Self>, index: usize) -> T
where T: Clone, R: DataAPI<Data = Self::Raw>,

Source§

fn get_index_ptr<R>(storage: &Storage<R, T, Self>, index: usize) -> *const T
where R: DataAPI<Data = Self::Raw>,

Source§

fn get_index_mut_ptr<R>( storage: &mut Storage<R, T, Self>, index: usize, ) -> *mut T
where R: DataMutAPI<Data = Self::Raw>,

Source§

fn set_index<R>(storage: &mut Storage<R, T, Self>, index: usize, value: T)
where R: DataMutAPI<Data = Self::Raw>,

Source§

fn is_empty<R>(storage: &Storage<R, T, Self>) -> bool
where R: DataAPI<Data = Self::Raw>,

Source§

impl<TA, TB, TC, DA, DB, DC> DeviceVecdotAPI<TA, TB, TC, DA, DB, DC> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TC> + ExtNum, TB: Clone, TC: Clone + Zero, DA: DimAPI, DB: DimAPI, DC: DimAPI, Self: DeviceAPI<TA, Raw = Vec<TA>> + DeviceAPI<TB, Raw = Vec<TB>> + DeviceAPI<TC, Raw = Vec<TC>>,

Source§

fn vecdot( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<DC>, a: &Vec<TA>, la: &Layout<DA>, b: &Vec<TB>, lb: &Layout<DB>, axes_a: &[isize], axes_b: &[isize], ) -> Result<()>

Source§

impl<TA, TB, D> OpATan2API<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: DTypeIntoFloatAPI<FloatType: Float>>, TB: Clone, D: DimAPI,

Source§

type TOut = <<TA as DTypePromoteAPI<TB>>::Res as DTypeIntoFloatAPI>::FloatType

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpAbsAPI<T, D> for DeviceCpuSerial
where T: ExtNum, D: DimAPI,

Source§

type TOut = <T as ExtNum>::AbsOut

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<T::AbsOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<T::AbsOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpAcosAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpAcoshAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, TC, D> OpAddAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + Add<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpAddAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + AddAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<D> OpAllAPI<bool, D> for DeviceCpuSerial
where D: DimAPI,

Source§

type TOut = bool

Source§

fn all_all(&self, a: &Vec<bool>, la: &Layout<D>) -> Result<bool>

Source§

fn all_axes( &self, a: &Vec<bool>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<bool>>, bool, Self>, Layout<IxD>)>

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§

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>)>

Source§

impl<D> OpAnyAPI<bool, D> for DeviceCpuSerial
where D: DimAPI,

Source§

type TOut = bool

Source§

fn any_all(&self, a: &Vec<bool>, la: &Layout<D>) -> Result<bool>

Source§

fn any_axes( &self, a: &Vec<bool>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<bool>>, bool, Self>, Layout<IxD>)>

Source§

impl<T, D> OpArgMaxAPI<T, D> for DeviceCpuSerial
where T: Clone + PartialOrd, D: DimAPI,

Source§

type TOut = usize

Source§

fn argmax_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<usize>>, Self::TOut, Self>, Layout<IxD>)>

Source§

fn argmax_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<Self::TOut>

Source§

impl<T, D> OpArgMinAPI<T, D> for DeviceCpuSerial
where T: Clone + PartialOrd, D: DimAPI,

Source§

type TOut = usize

Source§

fn argmin_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<usize>>, Self::TOut, Self>, Layout<IxD>)>

Source§

fn argmin_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<Self::TOut>

Source§

impl<T, D> OpAsinAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpAsinhAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TC, D, TA> OpAssignAPI<TC, D, TA> for DeviceCpuSerial
where TC: Clone, TA: Clone + DTypeCastAPI<TC>, D: DimAPI,

Source§

fn assign( &self, c: &mut Vec<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Element-wise assignment for same layout arrays.
Source§

fn assign_uninit( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn fill(&self, c: &mut Vec<TC>, lc: &Layout<D>, fill: TA) -> Result<()>

Source§

impl<TC, DC, DA, TA> OpAssignArbitaryAPI<TC, DC, DA, TA> for DeviceCpuSerial
where TC: Clone, TA: Clone + DTypeCastAPI<TC>, DC: DimAPI, DA: DimAPI,

Source§

fn assign_arbitary( &self, c: &mut Vec<TC>, lc: &Layout<DC>, a: &Vec<TA>, la: &Layout<DA>, ) -> Result<()>

Element-wise assignment in col-major order, without no promise that input layouts are broadcastable.
Source§

fn assign_arbitary_uninit( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<DC>, a: &Vec<TA>, la: &Layout<DA>, ) -> Result<()>

Source§

impl<T, D> OpAtanAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpAtanhAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, TC, D> OpBitAndAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + BitAnd<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpBitAndAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitAndAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, TC, D> OpBitOrAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + BitOr<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpBitOrAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitOrAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, TC, D> OpBitXorAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + BitXor<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpBitXorAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitXorAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<T, D> OpCeilAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: Float>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpConjAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpCopySignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: DTypeIntoFloatAPI<FloatType: Float>>, TB: Clone, D: DimAPI,

Source§

type TOut = <<TA as DTypePromoteAPI<TB>>::Res as DTypeIntoFloatAPI>::FloatType

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpCosAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpCoshAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpCountNonZeroAPI<T, D> for DeviceCpuSerial
where T: Clone + PartialEq + Zero, D: DimAPI,

Source§

type TOut = usize

Source§

fn count_nonzero_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<usize>

Source§

fn count_nonzero_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<usize>>, usize, Self>, Layout<IxD>)>

Source§

impl<TA, TB, TC, D> OpDivAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + Div<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpDivAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DivAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpEqualAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: PartialEq>, TB: Clone, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpExpAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpExpm1API<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: Float>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpFloorAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: Float>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpFloorDivideAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: ExtReal>, TB: Clone, D: DimAPI,

Source§

type TOut = <TA as DTypePromoteAPI<TB>>::Res

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpGreaterAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: PartialOrd>, TB: Clone, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpGreaterEqualAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: PartialOrd>, TB: Clone, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpHypotAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: DTypeIntoFloatAPI<FloatType: Float>>, TB: Clone, D: DimAPI,

Source§

type TOut = <<TA as DTypePromoteAPI<TB>>::Res as DTypeIntoFloatAPI>::FloatType

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpImagAPI<T, D> for DeviceCpuSerial
where T: ExtNum, D: DimAPI,

Source§

type TOut = <T as ExtNum>::AbsOut

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<T::AbsOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<T::AbsOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpInvAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D, TE> OpIsCloseAPI<TA, TB, D, TE> 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§

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

Source§

fn op_mutc_numa_refb( &self, out: &mut <Self as DeviceRawAPI<MaybeUninit<bool>>>::Raw, lout: &Layout<D>, a: TA, b: &<Self as DeviceRawAPI<TB>>::Raw, lb: &Layout<D>, isclose_args: &IsCloseArgs<TE>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, out: &mut <Self as DeviceRawAPI<MaybeUninit<bool>>>::Raw, lout: &Layout<D>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<D>, b: TB, isclose_args: &IsCloseArgs<TE>, ) -> Result<()>

Source§

impl<T, D> OpIsFiniteAPI<T, D> for DeviceCpuSerial
where T: Clone + ComplexFloat, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<bool>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, _a: &mut Vec<MaybeUninit<bool>>, _la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpIsInfAPI<T, D> for DeviceCpuSerial
where T: Clone + ComplexFloat, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<bool>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, _a: &mut Vec<MaybeUninit<bool>>, _la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpIsNanAPI<T, D> for DeviceCpuSerial
where T: Clone + ComplexFloat, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<bool>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, _a: &mut Vec<MaybeUninit<bool>>, _la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpL2NormAPI<T, D> for DeviceCpuSerial

Source§

type TOut = <T as ComplexFloat>::Real

Source§

fn l2_norm_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T::Real>

Source§

fn l2_norm_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T::Real>>, T::Real, Self>, Layout<IxD>)>

Source§

impl<TA, TB, D> OpLConsumeAddAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Add<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeBitAndAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitAnd<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeBitOrAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitOr<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeBitXorAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitXor<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeDivAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Div<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeMulAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeRemAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Rem<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeShlAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Shl<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeShrAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Shr<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLConsumeSubAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Sub<TB, Output = TA>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpLessAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: PartialOrd>, TB: Clone, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpLessEqualAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: PartialOrd>, TB: Clone, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpLog10API<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpLog2API<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpLogAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpLogAddExpAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: DTypeIntoFloatAPI<FloatType: ComplexFloat>>, TB: Clone, D: DimAPI,

Source§

type TOut = <<TA as DTypePromoteAPI<TB>>::Res as DTypeIntoFloatAPI>::FloatType

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpMaxAPI<T, D> for DeviceCpuSerial
where T: ExtReal, D: DimAPI,

Source§

type TOut = T

Source§

fn max_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T>

Source§

fn max_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T>>, T, Self>, Layout<IxD>)>

Source§

impl<TA, TB, D> OpMaximumAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: ExtReal>, TB: Clone, D: DimAPI,

Source§

type TOut = <TA as DTypePromoteAPI<TB>>::Res

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpMeanAPI<T, D> for DeviceCpuSerial

Source§

type TOut = T

Source§

fn mean_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T>

Source§

fn mean_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T>>, T, Self>, Layout<IxD>)>

Source§

impl<T, D> OpMinAPI<T, D> for DeviceCpuSerial
where T: ExtReal, D: DimAPI,

Source§

type TOut = T

Source§

fn min_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T>

Source§

fn min_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T>>, T, Self>, Layout<IxD>)>

Source§

impl<TA, TB, D> OpMinimumAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: ExtReal>, TB: Clone, D: DimAPI,

Source§

type TOut = <TA as DTypePromoteAPI<TB>>::Res

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, TC, D> OpMulAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpMulAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + MulAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, D> OpNegAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Neg<Output = TA>, TB: Clone + Neg<Output = TA>, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<TA>>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta(&self, a: &mut Vec<TA>, la: &Layout<D>) -> Result<()>

Source§

impl<TA, TB, D> OpNextAfterAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + DTypePromoteAPI<TB, Res: DTypeIntoFloatAPI<FloatType: ExtFloat>>, TB: Clone, D: DimAPI,

Source§

type TOut = <<TA as DTypePromoteAPI<TB>>::Res as DTypeIntoFloatAPI>::FloatType

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpNotAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Not<Output = TA>, TB: Clone + Not<Output = TA>, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<TA>>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta(&self, a: &mut Vec<TA>, la: &Layout<D>) -> Result<()>

Source§

impl<T> OpPackTriAPI<T> for DeviceCpuSerial
where T: Clone,

Source§

fn pack_tri( &self, a: &mut Vec<MaybeUninit<T>>, la: &Layout<IxD>, b: &Vec<T>, lb: &Layout<IxD>, uplo: FlagUpLo, ) -> Result<()>

Source§

impl<TA, TB, D> OpPowAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Pow<TB>, TB: Clone, TA::Output: Clone, D: DimAPI,

Source§

type TOut = <TA as Pow<TB>>::Output

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<Self::TOut>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut <Self as DeviceRawAPI<MaybeUninit<Self::TOut>>>::Raw, lc: &Layout<D>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut <Self as DeviceRawAPI<MaybeUninit<Self::TOut>>>::Raw, lc: &Layout<D>, a: TA, b: &<Self as DeviceRawAPI<TB>>::Raw, lb: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpProdAPI<T, D> for DeviceCpuSerial
where T: Clone + One + Mul<Output = T>, D: DimAPI,

Source§

type TOut = T

Source§

fn prod_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T>

Source§

fn prod_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T>>, T, Self>, Layout<IxD>)>

Source§

impl<TA, TB, D> OpRConsumeAddAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Add<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeBitAndAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitAnd<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeBitOrAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitOr<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeBitXorAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + BitXor<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeDivAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Div<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeMulAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeRemAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Rem<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeShlAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Shl<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeShrAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Shr<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<TA, TB, D> OpRConsumeSubAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + Sub<TB, Output = TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, b: &mut Vec<TB>, lb: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, b: &mut Vec<TB>, lb: &Layout<D>, a: TA) -> Result<()>

Source§

impl<T, D> OpRealAPI<T, D> for DeviceCpuSerial
where T: ExtNum, D: DimAPI,

Source§

type TOut = <T as ExtNum>::AbsOut

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<T::AbsOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, _a: &mut Vec<MaybeUninit<T::AbsOut>>, _la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpReciprocalAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, TC, D> OpRemAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + Rem<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpRemAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + RemAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<T, D> OpRoundAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: Float>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, TC, D> OpShlAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + Shl<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpShlAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + ShlAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<TA, TB, TC, D> OpShrAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + Shr<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpShrAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + ShrAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<T, D> OpSignAPI<T, D> for DeviceCpuSerial
where T: Clone + ComplexFloat + Div<T::Real, Output = T>, D: DimAPI,

Source§

type TOut = T

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<T>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta(&self, a: &mut Vec<MaybeUninit<T>>, la: &Layout<D>) -> Result<()>

Source§

impl<T, D> OpSignBitAPI<T, D> for DeviceCpuSerial
where T: Clone + Signed, D: DimAPI,

Source§

type TOut = bool

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<bool>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, _a: &mut Vec<MaybeUninit<bool>>, _la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpSinAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpSinhAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpSqrtAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpSquareAPI<T, D> for DeviceCpuSerial
where T: Clone + Mul<Output = T>, D: DimAPI,

Source§

type TOut = T

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<T>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta(&self, a: &mut Vec<MaybeUninit<T>>, la: &Layout<D>) -> Result<()>

Source§

impl<T, D> OpStdAPI<T, D> for DeviceCpuSerial

Source§

type TOut = <T as ComplexFloat>::Real

Source§

fn std_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T::Real>

Source§

fn std_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T::Real>>, T::Real, Self>, Layout<IxD>)>

Source§

impl<TA, TB, TC, D> OpSubAPI<TA, TB, TC, D> for DeviceCpuSerial
where TA: Clone + Sub<TB, Output = TC>, TB: Clone, TC: Clone, D: DimAPI,

Source§

fn op_mutc_refa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_mutc_refa_numb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

fn op_mutc_numa_refb( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> OpSubAssignAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone + SubAssign<TB>, TB: Clone, D: DimAPI,

Source§

fn op_muta_refb( &self, a: &mut Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta_numb(&self, a: &mut Vec<TA>, la: &Layout<D>, b: TB) -> Result<()>

Source§

impl<T, D> OpSumAPI<T, D> for DeviceCpuSerial
where T: Zero + Add<Output = T> + Clone, D: DimAPI,

Source§

type TOut = T

Source§

fn sum_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T>

Source§

fn sum_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T>>, T, Self>, Layout<IxD>)>

Source§

impl<D> OpSumBoolAPI<D> for DeviceCpuSerial
where D: DimAPI,

Source§

fn sum_all(&self, a: &Vec<bool>, la: &Layout<D>) -> Result<usize>

Source§

fn sum_axes( &self, a: &Vec<bool>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<usize>>, usize, Self>, Layout<IxD>)>

Source§

impl<T, D> OpTanAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpTanhAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: ComplexFloat>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T, D> OpTruncAPI<T, D> for DeviceCpuSerial
where T: Clone + DTypeIntoFloatAPI<FloatType: Float>, D: DimAPI,

Source§

type TOut = <T as DTypeIntoFloatAPI>::FloatType

Source§

fn op_muta_refb( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

fn op_muta( &self, a: &mut Vec<MaybeUninit<Self::TOut>>, la: &Layout<D>, ) -> Result<()>

Source§

impl<T> OpUnpackTriAPI<T> for DeviceCpuSerial
where T: ComplexFloat,

Source§

fn unpack_tri( &self, a: &mut Vec<MaybeUninit<T>>, la: &Layout<IxD>, b: &Vec<T>, lb: &Layout<IxD>, uplo: FlagUpLo, symm: FlagSymm, ) -> Result<()>

Source§

impl<T, D> OpUnraveledArgMaxAPI<T, D> for DeviceCpuSerial
where T: Clone + PartialOrd, D: DimAPI,

Source§

fn unraveled_argmax_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<IxD>>, IxD, Self>, Layout<IxD>)>

Source§

fn unraveled_argmax_all( &self, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, ) -> Result<D>

Source§

impl<T, D> OpUnraveledArgMinAPI<T, D> for DeviceCpuSerial
where T: Clone + PartialOrd, D: DimAPI,

Source§

fn unraveled_argmin_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<IxD>>, IxD, Self>, Layout<IxD>)>

Source§

fn unraveled_argmin_all( &self, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, ) -> Result<D>

Source§

impl<T, D> OpVarAPI<T, D> for DeviceCpuSerial

Source§

type TOut = <T as ComplexFloat>::Real

Source§

fn var_all(&self, a: &Vec<T>, la: &Layout<D>) -> Result<T::Real>

Source§

fn var_axes( &self, a: &Vec<T>, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Vec<T::Real>>, T::Real, Self>, Layout<IxD>)>

Source§

impl<T, D, F> Op_MutA_API<T, D, F> for DeviceCpuSerial
where T: Clone, D: DimAPI, F: FnMut(&mut MaybeUninit<T>) + ?Sized,

Source§

fn op_muta_func( &self, a: &mut Vec<MaybeUninit<T>>, la: &Layout<D>, f: &mut F, ) -> Result<()>

Source§

impl<TA, TB, D, F> Op_MutA_NumB_API<TA, TB, D, F> for DeviceCpuSerial
where TA: Clone, D: DimAPI, F: FnMut(&mut MaybeUninit<TA>, &TB) + ?Sized,

Source§

fn op_muta_numb_func( &self, a: &mut Vec<MaybeUninit<TA>>, la: &Layout<D>, b: TB, f: &mut F, ) -> Result<()>

Source§

impl<TA, TB, D, F> Op_MutA_RefB_API<TA, TB, D, F> for DeviceCpuSerial
where TA: Clone, TB: Clone, D: DimAPI, F: FnMut(&mut MaybeUninit<TA>, &TB) + ?Sized,

Source§

fn op_muta_refb_func( &self, a: &mut Vec<MaybeUninit<TA>>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, f: &mut F, ) -> Result<()>

Source§

impl<TA, TB, TC, D, F> Op_MutC_NumA_RefB_API<TA, TB, TC, D, F> for DeviceCpuSerial
where TB: Clone, TC: Clone, D: DimAPI, F: FnMut(&mut MaybeUninit<TC>, &TA, &TB) + ?Sized,

Source§

fn op_mutc_numa_refb_func( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: TA, b: &Vec<TB>, lb: &Layout<D>, f: &mut F, ) -> Result<()>

Source§

impl<TA, TB, TC, D, F> Op_MutC_RefA_NumB_API<TA, TB, TC, D, F> for DeviceCpuSerial
where TA: Clone, TC: Clone, D: DimAPI, F: FnMut(&mut MaybeUninit<TC>, &TA, &TB) + ?Sized,

Source§

fn op_mutc_refa_numb_func( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, f: &mut F, ) -> Result<()>

Source§

impl<TA, TB, TC, D, F> Op_MutC_RefA_RefB_API<TA, TB, TC, D, F> for DeviceCpuSerial
where TA: Clone, TB: Clone, TC: Clone, D: DimAPI, F: FnMut(&mut MaybeUninit<TC>, &TA, &TB) + ?Sized,

Source§

fn op_mutc_refa_refb_func( &self, c: &mut Vec<MaybeUninit<TC>>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, f: &mut F, ) -> Result<()>

Source§

impl<T> DeviceAPI<T> for DeviceCpuSerial

Source§

impl<T, D> DeviceComplexFloatAPI<T, D> for DeviceCpuSerial
where T: ComplexFloat + DTypeIntoFloatAPI<FloatType = T>, T::Real: DTypeIntoFloatAPI<FloatType = T::Real>, D: DimAPI,

Source§

impl<T, D> DeviceNumAPI<T, D> for DeviceCpuSerial
where T: Clone + Num, D: DimAPI,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DTypeCastAPI<T> for T

Source§

fn into_cast(self) -> T

Source§

impl<T> DTypePromoteAPI<T> for T

Source§

const SAME_TYPE: bool = true

Source§

const CAN_CAST_SELF: bool = true

Source§

const CAN_CAST_OTHER: bool = true

Source§

type Res = T

Source§

fn promote_self(self) -> <T as DTypePromoteAPI<T>>::Res

Source§

fn promote_other(val: T) -> <T as DTypePromoteAPI<T>>::Res

Source§

fn promote_pair(self, val: T) -> (Self::Res, Self::Res)
where Self: Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ValWriteAPI<T> for T

Source§

fn write(&mut self, val: T) -> &mut T