pub struct Add;Trait Implementations§
Source§impl BinaryOpT for Add
impl BinaryOpT for Add
const NAME: &'static str = "add"
const KERNEL: &'static str = "badd"
const V: Self = Add
fn bf16(v1: bf16, v2: bf16) -> bf16
fn f16(v1: f16, v2: f16) -> f16
fn f32(v1: f32, v2: f32) -> f32
fn f64(v1: f64, v2: f64) -> f64
fn u8(v1: u8, v2: u8) -> u8
fn u32(v1: u32, v2: u32) -> u32
fn i16(v1: i16, v2: i16) -> i16
fn i32(v1: i32, v2: i32) -> i32
fn i64(v1: i64, v2: i64) -> i64
fn f8e4m3(v1: f8e4m3, v2: f8e4m3) -> f8e4m3
fn f32_vec(lhs: &[f32], rhs: &[f32], res: &mut [f32])
fn f64_vec(lhs: &[f64], rhs: &[f64], res: &mut [f64])
fn bf16_vec(lhs: &[bf16], rhs: &[bf16], res: &mut [bf16])
fn f16_vec(lhs: &[f16], rhs: &[f16], res: &mut [f16])
fn bf16_scalar_vec(scalar: bf16, xs: &[bf16], ys: &mut [bf16])
fn f16_scalar_vec(scalar: f16, xs: &[f16], ys: &mut [f16])
fn f32_scalar_vec(scalar: f32, xs: &[f32], ys: &mut [f32])
fn f64_scalar_vec(scalar: f64, xs: &[f64], ys: &mut [f64])
fn u8_vec(xs1: &[u8], xs2: &[u8], ys: &mut [u8])
fn u32_vec(xs1: &[u32], xs2: &[u32], ys: &mut [u32])
fn i16_vec(xs1: &[i16], xs2: &[i16], ys: &mut [i16])
fn i32_vec(xs1: &[i32], xs2: &[i32], ys: &mut [i32])
fn i64_vec(xs1: &[i64], xs2: &[i64], ys: &mut [i64])
fn u8_scalar_vec(scalar: u8, xs: &[u8], ys: &mut [u8])
fn u32_scalar_vec(scalar: u32, xs: &[u32], ys: &mut [u32])
fn i16_scalar_vec(scalar: i16, xs: &[i16], ys: &mut [i16])
fn i32_scalar_vec(scalar: i32, xs: &[i32], ys: &mut [i32])
fn i64_scalar_vec(scalar: i64, xs: &[i64], ys: &mut [i64])
Auto Trait Implementations§
impl Freeze for Add
impl RefUnwindSafe for Add
impl Send for Add
impl Sync for Add
impl Unpin for Add
impl UnsafeUnpin for Add
impl UnwindSafe for Add
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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