cubecl_core::frontend

Trait Vectorized

Source
pub trait Vectorized {
    // Required methods
    fn vectorization_factor(&self) -> u32;
    fn vectorize(self, factor: u32) -> Self;
}

Required Methods§

Source

fn vectorization_factor(&self) -> u32

Source

fn vectorize(self, factor: u32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Vectorized for f32

Source§

fn vectorization_factor(&self) -> u32

Source§

fn vectorize(self, _factor: u32) -> Self

Source§

impl Vectorized for f64

Source§

fn vectorization_factor(&self) -> u32

Source§

fn vectorize(self, _factor: u32) -> Self

Source§

impl Vectorized for i32

Source§

fn vectorization_factor(&self) -> u32

Source§

fn vectorize(self, _factor: u32) -> Self

Source§

impl Vectorized for i64

Source§

fn vectorization_factor(&self) -> u32

Source§

fn vectorize(self, _factor: u32) -> Self

Source§

impl Vectorized for u32

Source§

fn vectorization_factor(&self) -> u32

Source§

fn vectorize(self, _factor: u32) -> Self

Source§

impl Vectorized for bf16

Source§

fn vectorization_factor(&self) -> u32

Source§

fn vectorize(self, _factor: u32) -> Self

Source§

impl Vectorized for f16

Source§

fn vectorization_factor(&self) -> u32

Source§

fn vectorize(self, _factor: u32) -> Self

Implementors§