pub type TensorRank0 = f64;Expand description
A tensor of rank 0 (a scalar).
Trait Implementations§
Source§impl AssertEq for TensorRank0
impl AssertEq for TensorRank0
fn eq(a: Self, b: TensorRank0) -> Result<(), AssertionError>
fn eq_within_tols( tols: &Assert, a: Self, b: TensorRank0, ) -> Result<(), AssertionError>
Source§impl AssertFd for TensorRank0
impl AssertFd for TensorRank0
fn eq_within_fd_tol( tols: &Assert, a: Self, b: TensorRank0, ) -> Result<(), AssertionError>
Source§impl FiniteDifference for TensorRank0
impl FiniteDifference for TensorRank0
Source§impl From<Vector> for TensorRank0
impl From<Vector> for TensorRank0
Source§impl Hessian for TensorRank0
impl Hessian for TensorRank0
Source§fn entry(&self, _row: usize, _column: usize) -> TensorRank0
fn entry(&self, _row: usize, _column: usize) -> TensorRank0
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.
Source§impl Jacobian for TensorRank0
impl Jacobian for TensorRank0
Source§fn fill_into_chained(self, _other: Vector, _vector: &mut Vector)
fn fill_into_chained(self, _other: Vector, _vector: &mut Vector)
Fills the Jacobian chained with a vector into another vector.
Source§fn retain_from(self, _retained: &[bool]) -> Vector
fn retain_from(self, _retained: &[bool]) -> Vector
Return only the retained indices.
Source§impl Solution for TensorRank0
impl Solution for TensorRank0
Source§fn decrement_from(&mut self, _other: &Vector)
fn decrement_from(&mut self, _other: &Vector)
Decrements the solution from another vector.
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§fn decrement_from_retained(&mut self, _retained: &[bool], _other: &Vector)
fn decrement_from_retained(&mut self, _retained: &[bool], _other: &Vector)
Decrements the solution from another vector on retained entries.
Source§impl Sub<&Vector> for TensorRank0
impl Sub<&Vector> for TensorRank0
Source§impl Sub<Vector> for TensorRank0
impl Sub<Vector> for TensorRank0
Source§impl Tensor for TensorRank0
impl Tensor for TensorRank0
Source§fn error_count_zero(
&self,
tol_abs: TensorRank0,
tol_rel: TensorRank0,
) -> Option<usize>
fn error_count_zero( &self, tol_abs: TensorRank0, tol_rel: TensorRank0, ) -> Option<usize>
Returns number of nonzero entries given absolute and relative tolerances, compared against zero.
Source§fn error_count(
&self,
other: &Self,
tol_abs: TensorRank0,
tol_rel: TensorRank0,
) -> Option<usize>
fn error_count( &self, other: &Self, tol_abs: TensorRank0, tol_rel: TensorRank0, ) -> Option<usize>
Returns number of different entries given absolute and relative tolerances.
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 norm_inf(&self) -> TensorRank0
fn norm_inf(&self) -> TensorRank0
Returns the infinity norm.
Source§fn norm_l1(&self) -> TensorRank0
fn norm_l1(&self) -> TensorRank0
Returns the L1 (Manhattan) norm.
Source§fn norm_p_sum(&self, p: TensorRank0) -> TensorRank0
fn norm_p_sum(&self, p: TensorRank0) -> TensorRank0
Returns the sum of p-th powers of absolute values (used internally by
norm_p).Source§fn normalized(self) -> Self
fn normalized(self) -> Self
Returns the tensor normalized.
Source§fn norm(&self) -> TensorRank0
fn norm(&self) -> TensorRank0
Returns the tensor norm.
Source§fn norm_p(&self, p: TensorRank0) -> TensorRank0
fn norm_p(&self, p: TensorRank0) -> TensorRank0
Returns the Minkowski (Lp) norm.
Source§fn norm_squared(&self) -> TensorRank0
fn norm_squared(&self) -> TensorRank0
Returns the tensor norm squared.