Skip to main content

TensorRank2SparseVec2D

Type Alias TensorRank2SparseVec2D 

Source
pub type TensorRank2SparseVec2D<const D: usize, I, J, U = Dimensionless> = TensorVector<TensorRank2SparseVec<D, I, J, U>>;
Expand description

A vector of sparse vectors of rank-2 tensors, storing only inserted entries.

Aliased Type§

pub struct TensorRank2SparseVec2D<const D: usize, I, J, U = Dimensionless>(/* private fields */);

Implementations§

Source§

impl<const D: usize, I, J, U> TensorRank2SparseVec2D<D, I, J, U>

Source

pub fn zero(len: usize) -> Self

Trait Implementations§

Source§

impl<const D: usize, I, J> AssertFd for TensorRank2SparseVec2D<D, I, J>

Source§

impl<const D: usize, I, J, U> FiniteDifference for TensorRank2SparseVec2D<D, I, J, U>

Source§

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

Source§

impl<const D: usize, I, J, U> Hessian for TensorRank2SparseVec2D<D, I, J, 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.
Source§

impl<const D: usize, I, U> HessianAccumulate<D, I, U> for TensorRank2SparseVec2D<D, I, I, U>

Source§

fn accumulate(&mut self, a: usize, b: usize, block: TensorRank2<D, I, I, U>)

Source§

impl<const D: usize, I, J, K, U, V> Mul<TensorRank2<D, J, K, V>> for TensorRank2SparseVec2D<D, I, J, U>
where U: UnitMul<V>,

Source§

type Output = TensorVector<TensorRank2SparseVec<D, I, K, <U as UnitMul<V>>::Output>>

The resulting type after applying the * operator.
Source§

fn mul(self, tensor_rank_2: TensorRank2<D, J, K, V>) -> Self::Output

Performs the * operation. Read more