pub type TensorRank0 = f64;Expand description
A tensor of rank 0 (a scalar).
Trait Implementations§
Source§impl Add<Quantity> for TensorRank0
impl Add<Quantity> for TensorRank0
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 Erase for TensorRank0
impl Erase for TensorRank0
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 quadratic_form(&self, vector: &Vector) -> TensorRank0
fn quadratic_form(&self, vector: &Vector) -> TensorRank0
The quadratic form of the Hessian with a vector. Read more
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 HessianBlock for TensorRank0
impl HessianBlock for TensorRank0
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<V> Mul<&Quantity<V>> for TensorRank0
impl<V> Mul<&Quantity<V>> for TensorRank0
Source§impl<V> Mul<&Quantity<V>> for &TensorRank0
impl<V> Mul<&Quantity<V>> for &TensorRank0
Source§impl<U> Mul<Quantity<U>> for TensorRank0
impl<U> Mul<Quantity<U>> for TensorRank0
Source§impl Mul<Quantity> for &TensorRank0
Scaling a bare scalar by a dimensionless quantity leaves it bare.
impl Mul<Quantity> for &TensorRank0
Scaling a bare scalar by a dimensionless quantity leaves it bare.
Source§impl PartialEq<Quantity> for TensorRank0
impl PartialEq<Quantity> for TensorRank0
Source§impl PartialOrd<Quantity> for TensorRank0
impl PartialOrd<Quantity> for TensorRank0
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<Quantity> for TensorRank0
impl Sub<Quantity> for TensorRank0
Source§impl Sub<Vector> for TensorRank0
impl Sub<Vector> for TensorRank0
Source§impl Tensor for TensorRank0
impl Tensor for TensorRank0
Source§type Unit = Dimensionless
type Unit = Dimensionless
The physical unit the tensor carries.
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.
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) -> Quantity<Dimensionless>
fn norm_inf(&self) -> Quantity<Dimensionless>
Returns the infinity norm.
Source§fn norm_l1(&self) -> Quantity<Dimensionless>
fn norm_l1(&self) -> Quantity<Dimensionless>
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).