Struct DeviceCpuSerial

Source
pub struct DeviceCpuSerial;

Trait Implementations§

Source§

impl Clone for DeviceCpuSerial

Source§

fn clone(&self) -> DeviceCpuSerial

Returns a copy 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() -> Self

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

impl<T, D> DeviceATan2API<T, T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

impl<T, D> DeviceAbsAPI<T, D> for DeviceCpuSerial
where T: Clone + AbsAPI, D: DimAPI,

Source§

type TOut = <T as AbsAPI>::Out

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<TA, TB, TC, D> DeviceAddAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceAddAssignAPI<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<T, D> DeviceAsinAPI<T, D> for DeviceCpuSerial
where T: Clone + ComplexFloat, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl DeviceBaseAPI for DeviceCpuSerial

Source§

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

Source§

impl<TA, TB, TC, D> DeviceBitAndAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceBitAndAssignAPI<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> DeviceBitOrAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceBitOrAssignAPI<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> DeviceBitXorAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceBitXorAssignAPI<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> DeviceCeilAPI<T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<'a, R, T, D> DeviceChangeAPI<'a, DeviceCpuSerial, R, T, D> for DeviceFaer
where T: Clone + Send + Sync + 'a, D: DimAPI, R: DataAPI<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: DataAPI<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, D> DeviceConjAPI<T, D> for DeviceCpuSerial
where T: Clone + ComplexFloat, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<T, D> DeviceCopySignAPI<T, T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<T> DeviceCreationAnyAPI<T> for DeviceCpuSerial
where T: Clone, DeviceCpuSerial: DeviceRawAPI<T, Raw = Vec<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>>

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

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> DeviceCreationPartialOrdNumAPI<T> for DeviceCpuSerial
where T: Num + PartialOrd + Clone, 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<TA, TB, TC, D> DeviceDivAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceDivAssignAPI<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<T, D> DeviceEqualAPI<T, T, D> for DeviceCpuSerial
where T: Clone + PartialEq, D: DimAPI,

Source§

type TOut = bool

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<T, D> DeviceExpm1API<T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<T, D> DeviceFloorAPI<T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<T, D> DeviceFloorDivideAPI<T, T, D> for DeviceCpuSerial
where T: Clone + FloorDivideAPI, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

impl<TA, TB, TC> DeviceGEMMAPI<TA, TB, TC> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TC>, TB: Clone, TC: Clone + Mul<TC, Output = TC> + Add<TC, Output = TC>,

Source§

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

Source§

impl<TA, TB, TC> DeviceGEMVAPI<TA, TB, TC> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TC>, TB: Clone, TC: Clone + Mul<TC, Output = TC> + Add<TC, Output = TC>,

Source§

fn gemv( &self, c: &mut Vec<TC>, lc: &Layout<Ix1>, a: &Vec<TA>, la: &Layout<Ix2>, b: &Vec<TB>, lb: &Layout<Ix1>, alpha: TC, beta: TC, ) -> Result<()>

Source§

fn gevm( &self, c: &mut Vec<TC>, lc: &Layout<Ix1>, a: &Vec<TA>, la: &Layout<Ix1>, b: &Vec<TB>, lb: &Layout<Ix2>, alpha: TC, beta: TC, ) -> Result<()>

Source§

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

Source§

type TOut = bool

Source§

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

Source§

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

Source§

type TOut = bool

Source§

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

Source§

impl<T, D> DeviceHypotAPI<T, T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

impl<T, D> DeviceImagAPI<T, D> for DeviceCpuSerial
where T: Clone + ReImAPI, D: DimAPI,

Source§

type TOut = <T as ReImAPI>::Out

Source§

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

Source§

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

Source§

impl<TA, TB, TC> DeviceInnerDotAPI<TA, TB, TC> for DeviceCpuSerial
where TA: Clone + Mul<TB, Output = TC>, TB: Clone, TC: Clone + Mul<TC, Output = TC> + Add<TC, Output = TC>,

Source§

fn inner_dot( &self, c: &mut Vec<TC>, lc: &Layout<Ix0>, a: &Vec<TA>, la: &Layout<Ix1>, b: &Vec<TB>, lb: &Layout<Ix1>, alpha: TC, beta: TC, ) -> Result<()>

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = bool

Source§

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

Source§

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

Source§

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

Source§

type TOut = bool

Source§

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

Source§

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

Source§

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

Source§

type TOut = bool

Source§

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

Source§

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

Source§

impl<TA, TB, D> DeviceLConsumeAddAPI<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> DeviceLConsumeBitAndAPI<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> DeviceLConsumeBitOrAPI<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> DeviceLConsumeBitXorAPI<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> DeviceLConsumeDivAPI<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> DeviceLConsumeMulAPI<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> DeviceLConsumeRemAPI<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> DeviceLConsumeShlAPI<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> DeviceLConsumeShrAPI<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> DeviceLConsumeSubAPI<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<T, D> DeviceLessAPI<T, T, D> for DeviceCpuSerial
where T: Clone + PartialOrd, D: DimAPI,

Source§

type TOut = bool

Source§

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

Source§

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

Source§

type TOut = bool

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

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, TC: Clone + Mul<TC, Output = TC> + Add<TC, Output = TC>, DA: DimAPI, DB: DimAPI, DC: DimAPI, Self: DeviceGEMMAPI<TA, TB, TC> + DeviceGEMVAPI<TA, TB, TC> + DeviceInnerDotAPI<TA, TB, TC> + 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, D> DeviceMaximumAPI<T, T, D> for DeviceCpuSerial
where T: Clone + MinMaxAPI, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

impl<T, D> DeviceMinimumAPI<T, T, D> for DeviceCpuSerial
where T: Clone + MinMaxAPI, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

impl<TA, TB, TC, D> DeviceMulAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceMulAssignAPI<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> DeviceNegAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone, TB: Clone, D: DimAPI,

Source§

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

Source§

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

Source§

impl<TA, TB, D> DeviceNotAPI<TA, TB, D> for DeviceCpuSerial
where TA: Clone, TB: Clone, D: DimAPI,

Source§

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

Source§

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

Source§

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

Source§

type TOut = bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<TA, TB, D> DevicePowAPI<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<Self::TOut>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: &Vec<TB>, lb: &Layout<D>, ) -> Result<()>

Source§

impl<TA, TB, D> DeviceRConsumeAddAPI<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> DeviceRConsumeBitAndAPI<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> DeviceRConsumeBitOrAPI<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> DeviceRConsumeBitXorAPI<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> DeviceRConsumeDivAPI<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> DeviceRConsumeMulAPI<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> DeviceRConsumeRemAPI<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> DeviceRConsumeShlAPI<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> DeviceRConsumeShrAPI<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> DeviceRConsumeSubAPI<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> DeviceRawAPI<T> for DeviceCpuSerial
where T: Clone,

Source§

type Raw = Vec<T>

Source§

impl<T, D> DeviceRealAPI<T, D> for DeviceCpuSerial
where T: Clone + ReImAPI, D: DimAPI,

Source§

type TOut = <T as ReImAPI>::Out

Source§

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

Source§

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

Source§

impl<TA, TB, TC, D> DeviceRemAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceRemAssignAPI<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> DeviceRoundAPI<T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<TA, TB, TC, D> DeviceShlAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceShlAssignAPI<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> DeviceShrAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceShrAssignAPI<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> DeviceSignAPI<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<T>, la: &Layout<D>, b: &Vec<T>, lb: &Layout<D>, ) -> Result<()>

Source§

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

Source§

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

Source§

type TOut = bool

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

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 R: DataAPI<Data = Self::Raw>,

Source§

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

Source§

fn get_index<R>(storage: &Storage<R, T, Self>, index: usize) -> T
where 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, D> DeviceSubAPI<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<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<TC>, lc: &Layout<D>, a: &Vec<TA>, la: &Layout<D>, b: TB, ) -> Result<()>

Source§

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

Source§

impl<TA, TB, D> DeviceSubAssignAPI<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> DeviceTanAPI<T, D> for DeviceCpuSerial
where T: Clone + ComplexFloat, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

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

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<T, D> DeviceTruncAPI<T, D> for DeviceCpuSerial
where T: Clone + Float, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

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

Source§

impl<T, D> OpAssignAPI<T, D> for DeviceCpuSerial
where T: Clone, D: DimAPI,

Source§

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

Element-wise assignment for same layout arrays.
Source§

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

Source§

impl<T, DC, DA> OpAssignArbitaryAPI<T, DC, DA> for DeviceCpuSerial
where T: Clone, DC: DimAPI, DA: DimAPI,

Source§

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

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

impl<T, D> OpMaxAPI<T, D> for DeviceCpuSerial
where T: Clone + MinMaxAPI + Bounded, D: DimAPI,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn mean( &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: Clone + MinMaxAPI + Bounded, D: DimAPI,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
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.