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§
Sourcefn compute_quadratic_form(&self, x: &[f64; N]) -> f64
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.