LinearCombination

Trait LinearCombination 

Source
pub trait LinearCombination<S>: Sized {
    // Required method
    fn linear_combination<const N: usize>(terms: [(Self, S); N]) -> Self;
}

Required Methods§

Source

fn linear_combination<const N: usize>(terms: [(Self, S); N]) -> 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 LinearCombination<f32> for f32

Source§

fn linear_combination<const N: usize>(terms: [(Self, Self); N]) -> Self

Source§

impl LinearCombination<f64> for f64

Source§

fn linear_combination<const N: usize>(terms: [(Self, Self); N]) -> Self

Implementors§