pub type QuantitySparseVec2D<U = Dimensionless> = TensorVector<QuantitySparseVec<U>>;Expand description
A vector of sparse vectors of quantities, storing only inserted entries.
Aliased Type§
pub struct QuantitySparseVec2D<U = Dimensionless>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<U> FiniteDifference for QuantitySparseVec2D<U>
impl<U> FiniteDifference for QuantitySparseVec2D<U>
Source§impl<U> Hessian for QuantitySparseVec2D<U>
impl<U> Hessian for QuantitySparseVec2D<U>
Source§fn quadratic_form(&self, vector: &Vector) -> Scalar
fn quadratic_form(&self, vector: &Vector) -> Scalar
The quadratic form of the Hessian with a vector. Read more
Source§fn entry(&self, row: usize, column: usize) -> Scalar
fn entry(&self, row: usize, column: usize) -> Scalar
The entry at the given (row, column) position.
Source§fn fill_into(self, square_matrix: &mut SquareMatrix)
fn fill_into(self, square_matrix: &mut SquareMatrix)
Fills the Hessian into a square matrix.
Source§fn retain_from(self, retained: &[bool]) -> SquareMatrix
fn retain_from(self, retained: &[bool]) -> SquareMatrix
Return only the retained indices.