pub trait Hessianwhere
Self: Tensor,{
// Required methods
fn entry(&self, row: usize, column: usize) -> Scalar;
fn fill_into(self, square_matrix: &mut SquareMatrix);
// Provided methods
fn quadratic_form(&self, _vector: &Vector) -> Scalar { ... }
fn retain_from(self, _retained: &[bool]) -> SquareMatrix { ... }
}Expand description
Common methods for Hessians.
Required Methods§
Sourcefn entry(&self, row: usize, column: usize) -> Scalar
fn entry(&self, row: usize, column: usize) -> Scalar
The entry at the given (row, column) position.
Sourcefn fill_into(self, square_matrix: &mut SquareMatrix)
fn fill_into(self, square_matrix: &mut SquareMatrix)
Fills the Hessian into a square matrix.
Provided Methods§
Sourcefn quadratic_form(&self, _vector: &Vector) -> Scalar
fn quadratic_form(&self, _vector: &Vector) -> Scalar
The quadratic form of the Hessian with a vector.
\mathbf{v}\cdot\mathbf{H}\cdot\mathbf{v}Sourcefn retain_from(self, _retained: &[bool]) -> SquareMatrix
fn retain_from(self, _retained: &[bool]) -> SquareMatrix
Return only the retained indices.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".