pub type TensorRank0 = f64;
Expand description
A tensor of rank 0 (a scalar).
Trait Implementations§
Source§impl Hessian for TensorRank0
impl Hessian for TensorRank0
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 is_positive_definite(&self) -> bool
fn is_positive_definite(&self) -> bool
Checks whether the Hessian is positive-definite.
Source§impl Jacobian for TensorRank0
impl Jacobian for TensorRank0
Source§impl Solution for TensorRank0
impl Solution for TensorRank0
Source§fn decrement_from_chained(&mut self, _other: &mut Vector, _vector: Vector)
fn decrement_from_chained(&mut self, _other: &mut Vector, _vector: Vector)
Decrements the solution chained with a vector from another vector.
Source§impl Sub<Vector> for TensorRank0
impl Sub<Vector> for TensorRank0
Source§impl Tensor for TensorRank0
impl Tensor for TensorRank0
Source§fn full_contraction(&self, tensor_rank_0: &Self) -> TensorRank0
fn full_contraction(&self, tensor_rank_0: &Self) -> TensorRank0
Returns the full contraction with another tensor.
Source§fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>
fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>
Returns an iterator that allows modifying each value. Read more
Source§fn normalized(self) -> Self
fn normalized(self) -> Self
Returns the tensor normalized.
Source§fn get_at(&self, _indices: &[usize]) -> &TensorRank0
fn get_at(&self, _indices: &[usize]) -> &TensorRank0
Returns a reference to the entry at the specified indices.
Source§fn get_at_mut(&mut self, _indices: &[usize]) -> &mut TensorRank0
fn get_at_mut(&mut self, _indices: &[usize]) -> &mut TensorRank0
Returns a mutable reference to the entry at the specified indices.
Source§fn norm(&self) -> TensorRank0
fn norm(&self) -> TensorRank0
Returns the tensor norm.
Source§fn norm_squared(&self) -> TensorRank0
fn norm_squared(&self) -> TensorRank0
Returns the tensor norm squared.
Source§fn num_entries(&self) -> usize
fn num_entries(&self) -> usize
Returns the total number of entries.