pub trait LinalgScalar: 'static + Copy + Zero<Output = Self> + One<Output = Self> + Add<Self> + Sub<Self, Output = Self> + Mul<Self> + Div<Self, Output = Self> { }
Expand description

Elements that support linear algebra operations.

'static for type-based specialization, Copy so that they don’t need move semantics or destructors, and the rest are numerical traits.

Implementors§

source§

impl<T> LinalgScalar for Twhere T: One<Output = T> + Add<T, Output = T> + Sub<T, Output = T> + 'static + Mul<T> + Copy + Div<T, Output = T> + Zero,