pub struct QuantitySparseVec<U = Dimensionless>(/* private fields */);Expand description
A sparse vector of quantities, storing only inserted entries.
Implementations§
Trait Implementations§
Source§impl<U> Add<&QuantitySparseVec<U>> for QuantitySparseVec<U>
impl<U> Add<&QuantitySparseVec<U>> for QuantitySparseVec<U>
Source§impl<U> Add for QuantitySparseVec<U>
impl<U> Add for QuantitySparseVec<U>
Source§impl<U> AddAssign<&QuantitySparseVec<U>> for QuantitySparseVec<U>
impl<U> AddAssign<&QuantitySparseVec<U>> for QuantitySparseVec<U>
Source§fn add_assign(&mut self, other: &Self)
fn add_assign(&mut self, other: &Self)
Performs the
+= operation. Read moreSource§impl<U> AddAssign for QuantitySparseVec<U>
impl<U> AddAssign for QuantitySparseVec<U>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<U> Clone for QuantitySparseVec<U>
impl<U> Clone for QuantitySparseVec<U>
Source§impl<U> Debug for QuantitySparseVec<U>
impl<U> Debug for QuantitySparseVec<U>
Source§impl<U> Default for QuantitySparseVec<U>
impl<U> Default for QuantitySparseVec<U>
Source§impl<U> Display for QuantitySparseVec<U>
impl<U> Display for QuantitySparseVec<U>
Source§impl<U> Div<f64> for QuantitySparseVec<U>
impl<U> Div<f64> for QuantitySparseVec<U>
Source§type Output = QuantitySparseVec<U>
type Output = QuantitySparseVec<U>
The resulting type after applying the
/ operator.Source§fn div(self, scalar: TensorRank0) -> Self
fn div(self, scalar: TensorRank0) -> Self
Performs the
/ operation. Read moreSource§impl<U> DivAssign<&f64> for QuantitySparseVec<U>
impl<U> DivAssign<&f64> for QuantitySparseVec<U>
Source§fn div_assign(&mut self, scalar: &TensorRank0)
fn div_assign(&mut self, scalar: &TensorRank0)
Performs the
/= operation. Read moreSource§impl<U> DivAssign<f64> for QuantitySparseVec<U>
impl<U> DivAssign<f64> for QuantitySparseVec<U>
Source§fn div_assign(&mut self, scalar: TensorRank0)
fn div_assign(&mut self, scalar: TensorRank0)
Performs the
/= operation. Read moreSource§impl<U> FromIterator<Quantity<U>> for QuantitySparseVec<U>
impl<U> FromIterator<Quantity<U>> for QuantitySparseVec<U>
Source§impl<U> Index<usize> for QuantitySparseVec<U>
impl<U> Index<usize> for QuantitySparseVec<U>
Source§impl<U> IndexMut<usize> for QuantitySparseVec<U>
impl<U> IndexMut<usize> for QuantitySparseVec<U>
Source§impl<U> Mul<f64> for QuantitySparseVec<U>
impl<U> Mul<f64> for QuantitySparseVec<U>
Source§type Output = QuantitySparseVec<U>
type Output = QuantitySparseVec<U>
The resulting type after applying the
* operator.Source§fn mul(self, scalar: TensorRank0) -> Self
fn mul(self, scalar: TensorRank0) -> Self
Performs the
* operation. Read moreSource§impl<U> MulAssign<&f64> for QuantitySparseVec<U>
impl<U> MulAssign<&f64> for QuantitySparseVec<U>
Source§fn mul_assign(&mut self, scalar: &TensorRank0)
fn mul_assign(&mut self, scalar: &TensorRank0)
Performs the
*= operation. Read moreSource§impl<U> MulAssign<f64> for QuantitySparseVec<U>
impl<U> MulAssign<f64> for QuantitySparseVec<U>
Source§fn mul_assign(&mut self, scalar: TensorRank0)
fn mul_assign(&mut self, scalar: TensorRank0)
Performs the
*= operation. Read moreSource§impl<U> PartialEq for QuantitySparseVec<U>
impl<U> PartialEq for QuantitySparseVec<U>
Source§impl<U> Sub<&QuantitySparseVec<U>> for QuantitySparseVec<U>
impl<U> Sub<&QuantitySparseVec<U>> for QuantitySparseVec<U>
Source§impl<U> Sub for QuantitySparseVec<U>
impl<U> Sub for QuantitySparseVec<U>
Source§impl<U> SubAssign<&QuantitySparseVec<U>> for QuantitySparseVec<U>
impl<U> SubAssign<&QuantitySparseVec<U>> for QuantitySparseVec<U>
Source§fn sub_assign(&mut self, other: &Self)
fn sub_assign(&mut self, other: &Self)
Performs the
-= operation. Read moreSource§impl<U> SubAssign for QuantitySparseVec<U>
impl<U> SubAssign for QuantitySparseVec<U>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl<U> Sum for QuantitySparseVec<U>
impl<U> Sum for QuantitySparseVec<U>
Source§impl<U> Tensor for QuantitySparseVec<U>
impl<U> Tensor for QuantitySparseVec<U>
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 error_count_zero(&self, tol_abs: Scalar, tol_rel: Scalar) -> Option<usize>
fn error_count_zero(&self, tol_abs: Scalar, tol_rel: Scalar) -> Option<usize>
Returns number of nonzero entries given absolute and relative tolerances.
Source§fn error_count(
&self,
other: &Self,
tol_abs: Scalar,
tol_rel: Scalar,
) -> Option<usize>
fn error_count( &self, other: &Self, tol_abs: Scalar, tol_rel: Scalar, ) -> Option<usize>
Returns number of different entries given absolute and relative tolerances.
Source§fn full_contraction(&self, tensor: &Self) -> TensorRank0
fn full_contraction(&self, tensor: &Self) -> TensorRank0
Returns the full contraction with another tensor.
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).Auto Trait Implementations§
impl<U> Freeze for QuantitySparseVec<U>
impl<U> RefUnwindSafe for QuantitySparseVec<U>where
U: RefUnwindSafe,
impl<U> Send for QuantitySparseVec<U>where
U: Send,
impl<U> Sync for QuantitySparseVec<U>where
U: Sync,
impl<U> Unpin for QuantitySparseVec<U>where
U: Unpin,
impl<U> UnsafeUnpin for QuantitySparseVec<U>
impl<U> UnwindSafe for QuantitySparseVec<U>where
U: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T> AssertEq<&'a T> for T
impl<'a, T> AssertEq<&'a T> for T
fn eq(a: T, b: &'a T) -> Result<(), AssertionError>
fn eq_within_tols(tols: &Assert, a: T, b: &'a T) -> Result<(), AssertionError>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more