Trait FloatElemType

Source
pub trait FloatElemType:
    ElemType
    + Add
    + Sub
    + Div
    + Mul {
    // Required method
    fn linspace(start: Self, end: Self, steps: usize) -> Vec<Self>;
}

Required Methods§

Source

fn linspace(start: Self, end: Self, steps: usize) -> Vec<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 FloatElemType for f32

Source§

fn linspace(start: Self, end: Self, steps: usize) -> Vec<Self>

Source§

impl FloatElemType for f64

Source§

fn linspace(start: Self, end: Self, steps: usize) -> Vec<Self>

Source§

impl FloatElemType for bf16

Source§

fn linspace(start: Self, end: Self, steps: usize) -> Vec<Self>

Source§

impl FloatElemType for f16

Source§

fn linspace(start: Self, end: Self, steps: usize) -> Vec<Self>

Implementors§