pub trait LinalgScalar: 'static + Copy + Zero<Output = Self> + One<Output = Self> + Add + Sub<Output = Self> + Mul + Div<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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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