Struct gemm_common::simd::Scalar

source ·
pub struct Scalar;

Trait Implementations§

source§

impl Clone for Scalar

source§

fn clone(&self) -> Scalar

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 Scalar

source§

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

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

impl MixedSimd<Complex<f32>, Complex<f32>, Complex<f32>, Complex<f32>> for Scalar

source§

const SIMD_WIDTH: usize = 1usize

§

type LhsN = Complex<f32>

§

type RhsN = Complex<f32>

§

type DstN = Complex<f32>

§

type AccN = Complex<f32>

source§

fn try_new() -> Option<Self>

source§

fn mult(self, lhs: c32, rhs: c32) -> c32

source§

fn mult_add(self, lhs: c32, rhs: c32, acc: c32) -> c32

source§

fn from_lhs(self, lhs: c32) -> c32

source§

fn from_rhs(self, rhs: c32) -> c32

source§

fn from_dst(self, dst: c32) -> c32

source§

fn into_dst(self, acc: c32) -> c32

source§

fn simd_mult_add( self, lhs: Self::AccN, rhs: Self::AccN, acc: Self::AccN ) -> Self::AccN

source§

fn simd_from_lhs(self, lhs: Self::LhsN) -> Self::AccN

source§

fn simd_from_rhs(self, rhs: Self::RhsN) -> Self::AccN

source§

fn simd_splat(self, lhs: c32) -> Self::AccN

source§

fn simd_from_dst(self, dst: Self::DstN) -> Self::AccN

source§

fn simd_into_dst(self, acc: Self::AccN) -> Self::DstN

source§

fn vectorize<F: NullaryFnOnce>(self, f: F) -> F::Output

source§

fn add(self, lhs: c32, rhs: c32) -> c32

source§

fn simd_mul(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

fn simd_add(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

impl MixedSimd<Complex<f64>, Complex<f64>, Complex<f64>, Complex<f64>> for Scalar

source§

const SIMD_WIDTH: usize = 1usize

§

type LhsN = Complex<f64>

§

type RhsN = Complex<f64>

§

type DstN = Complex<f64>

§

type AccN = Complex<f64>

source§

fn try_new() -> Option<Self>

source§

fn mult(self, lhs: c64, rhs: c64) -> c64

source§

fn mult_add(self, lhs: c64, rhs: c64, acc: c64) -> c64

source§

fn from_lhs(self, lhs: c64) -> c64

source§

fn from_rhs(self, rhs: c64) -> c64

source§

fn from_dst(self, dst: c64) -> c64

source§

fn into_dst(self, acc: c64) -> c64

source§

fn simd_mult_add( self, lhs: Self::AccN, rhs: Self::AccN, acc: Self::AccN ) -> Self::AccN

source§

fn simd_from_lhs(self, lhs: Self::LhsN) -> Self::AccN

source§

fn simd_from_rhs(self, rhs: Self::RhsN) -> Self::AccN

source§

fn simd_splat(self, lhs: c64) -> Self::AccN

source§

fn simd_from_dst(self, dst: Self::DstN) -> Self::AccN

source§

fn simd_into_dst(self, acc: Self::AccN) -> Self::DstN

source§

fn vectorize<F: NullaryFnOnce>(self, f: F) -> F::Output

source§

fn add(self, lhs: c64, rhs: c64) -> c64

source§

fn simd_mul(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

fn simd_add(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

impl MixedSimd<f16, f16, f16, f32> for Scalar

source§

const SIMD_WIDTH: usize = 1usize

§

type LhsN = f16

§

type RhsN = f16

§

type DstN = f16

§

type AccN = f32

source§

fn try_new() -> Option<Self>

source§

fn add(self, lhs: f32, rhs: f32) -> f32

source§

fn mult(self, lhs: f32, rhs: f32) -> f32

source§

fn mult_add(self, lhs: f32, rhs: f32, acc: f32) -> f32

source§

fn from_lhs(self, lhs: f16) -> f32

source§

fn from_rhs(self, rhs: f16) -> f32

source§

fn from_dst(self, dst: f16) -> f32

source§

fn into_dst(self, acc: f32) -> f16

source§

fn simd_mult_add( self, lhs: Self::AccN, rhs: Self::AccN, acc: Self::AccN ) -> Self::AccN

source§

fn simd_from_lhs(self, lhs: Self::LhsN) -> Self::AccN

source§

fn simd_from_rhs(self, rhs: Self::RhsN) -> Self::AccN

source§

fn simd_splat(self, lhs: f32) -> Self::AccN

source§

fn simd_from_dst(self, dst: Self::DstN) -> Self::AccN

source§

fn simd_into_dst(self, acc: Self::AccN) -> Self::DstN

source§

fn vectorize<F: NullaryFnOnce>(self, f: F) -> F::Output

source§

fn simd_mul(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

fn simd_add(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

impl MixedSimd<f32, f32, f32, f32> for Scalar

source§

const SIMD_WIDTH: usize = 1usize

§

type LhsN = f32

§

type RhsN = f32

§

type DstN = f32

§

type AccN = f32

source§

fn try_new() -> Option<Self>

source§

fn mult(self, lhs: f32, rhs: f32) -> f32

source§

fn mult_add(self, lhs: f32, rhs: f32, acc: f32) -> f32

source§

fn from_lhs(self, lhs: f32) -> f32

source§

fn from_rhs(self, rhs: f32) -> f32

source§

fn from_dst(self, dst: f32) -> f32

source§

fn into_dst(self, acc: f32) -> f32

source§

fn simd_mult_add( self, lhs: Self::AccN, rhs: Self::AccN, acc: Self::AccN ) -> Self::AccN

source§

fn simd_from_lhs(self, lhs: Self::LhsN) -> Self::AccN

source§

fn simd_from_rhs(self, rhs: Self::RhsN) -> Self::AccN

source§

fn simd_splat(self, lhs: f32) -> Self::AccN

source§

fn simd_from_dst(self, dst: Self::DstN) -> Self::AccN

source§

fn simd_into_dst(self, acc: Self::AccN) -> Self::DstN

source§

fn vectorize<F: NullaryFnOnce>(self, f: F) -> F::Output

source§

fn add(self, lhs: f32, rhs: f32) -> f32

source§

fn simd_mul(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

fn simd_add(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

impl MixedSimd<f64, f64, f64, f64> for Scalar

source§

const SIMD_WIDTH: usize = 1usize

§

type LhsN = f64

§

type RhsN = f64

§

type DstN = f64

§

type AccN = f64

source§

fn try_new() -> Option<Self>

source§

fn mult(self, lhs: f64, rhs: f64) -> f64

source§

fn mult_add(self, lhs: f64, rhs: f64, acc: f64) -> f64

source§

fn from_lhs(self, lhs: f64) -> f64

source§

fn from_rhs(self, rhs: f64) -> f64

source§

fn from_dst(self, dst: f64) -> f64

source§

fn into_dst(self, acc: f64) -> f64

source§

fn simd_mult_add( self, lhs: Self::AccN, rhs: Self::AccN, acc: Self::AccN ) -> Self::AccN

source§

fn simd_from_lhs(self, lhs: Self::LhsN) -> Self::AccN

source§

fn simd_from_rhs(self, rhs: Self::RhsN) -> Self::AccN

source§

fn simd_splat(self, lhs: f64) -> Self::AccN

source§

fn simd_from_dst(self, dst: Self::DstN) -> Self::AccN

source§

fn simd_into_dst(self, acc: Self::AccN) -> Self::DstN

source§

fn vectorize<F: NullaryFnOnce>(self, f: F) -> F::Output

source§

fn add(self, lhs: f64, rhs: f64) -> f64

source§

fn simd_mul(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

fn simd_add(self, lhs: Self::AccN, rhs: Self::AccN) -> Self::AccN

source§

impl Simd for Scalar

source§

unsafe fn vectorize<F: NullaryFnOnce>(f: F) -> F::Output

source§

impl Copy for Scalar

Auto Trait Implementations§

§

impl Freeze for Scalar

§

impl RefUnwindSafe for Scalar

§

impl Send for Scalar

§

impl Sync for Scalar

§

impl Unpin for Scalar

§

impl UnwindSafe for Scalar

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

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,

§

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

§

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

§

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.