Skip to main content

QuantitySparseVec2D

Type Alias QuantitySparseVec2D 

Source
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§

Source§

impl<U> QuantitySparseVec2D<U>

Source

pub fn zero(len: usize) -> Self

Trait Implementations§

Source§

impl<U> FiniteDifference for QuantitySparseVec2D<U>

Source§

fn error_fd( &self, comparator: &Self, epsilon: TensorRank0, ) -> Option<(bool, usize)>

Source§

impl<U> Hessian for QuantitySparseVec2D<U>

Source§

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

The entry at the given (row, column) position.
Source§

fn fill_into(self, square_matrix: &mut SquareMatrix)

Fills the Hessian into a square matrix.
Source§

fn retain_from(self, retained: &[bool]) -> SquareMatrix

Return only the retained indices.