Trait dfdx::dtypes::Dtype

source ·
pub trait Dtype: Unit + Add<Self, Output = Self> + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> + AddAssign + SubAssign + MulAssign + DivAssign + FromPrimitive + ToPrimitive { }
Expand description

Represents a data type or element of an array that can have arithmatic operations applied to it. The main difference between Dtype and Unit is that bool is Unit, but not Dtype.

Implementations on Foreign Types§

source§

impl Dtype for u16

source§

impl Dtype for u64

source§

impl Dtype for i8

source§

impl Dtype for u128

source§

impl Dtype for usize

source§

impl Dtype for f64

source§

impl Dtype for isize

source§

impl Dtype for u32

source§

impl Dtype for f32

source§

impl Dtype for u8

source§

impl Dtype for i128

source§

impl Dtype for i64

source§

impl Dtype for i32

source§

impl Dtype for i16

Implementors§

source§

impl<F: Dtype> Dtype for AMP<F>