QuadraticForm

Trait QuadraticForm 

Source
pub trait QuadraticForm<const N: usize>: SquareMatrix {
    // Required method
    fn compute_quadratic_form(&self, x: &[f64; N]) -> f64;
}
Expand description

Solve the quadratic form.

\mathbf{x}^{\intercal} \mathbf{A} \mathbf{x}

Required Methods§

Source

fn compute_quadratic_form(&self, x: &[f64; N]) -> f64

Evaluate the quadratic form.

The matrix A is given by self and the vector x in the argument.

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.

Implementors§

Source§

impl<const N: usize> QuadraticForm<N> for Matrix<N, N>