Skip to main content

QuantityVector

Type Alias QuantityVector 

Source
pub type QuantityVector<U = Dimensionless> = TensorVector<Quantity<U>>;
Expand description

A vector of quantities.

Aliased Type§

pub struct QuantityVector<U = Dimensionless>(/* private fields */);

Implementations§

Source§

impl<U> QuantityVector<U>

Source

pub fn zero(len: usize) -> Self

Trait Implementations§

Source§

impl<U, V> Div<TensorVector<QuantitySparseVec<V>>> for &QuantityVector<U>
where U: UnitDiv<V>,

Source§

type Output = TensorVector<Quantity<<U as UnitDiv<V>>::Output>>

The resulting type after applying the / operator.
Source§

fn div(self, _quantity_sparse_vec_2d: QuantitySparseVec2D<V>) -> Self::Output

Performs the / operation. Read more
Source§

impl<U> FiniteDifference for QuantityVector<U>

Source§

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

Source§

impl<U> From<Vector> for QuantityVector<U>

Source§

fn from(vector: Vector) -> Self

Converts to this type from the input type.
Source§

impl<U> Jacobian for QuantityVector<U>

Source§

fn fill_into(&self, vector: &mut Vector)

Fills the Jacobian into a vector.
Source§

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

Return only the retained indices.
Source§

fn zero_out(&mut self, indices: &[usize])

Zero out the specified indices.
Source§

impl<U> Solution for QuantityVector<U>

Source§

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)

Decrements the solution chained with a vector from another vector.
Source§

fn decrement_from_retained(&mut self, retained: &[bool], other: &Vector)

Decrements the solution from another vector on retained entries.
Source§

impl<U> Sub<&Vector> for QuantityVector<U>

Source§

type Output = TensorVector<Quantity<U>>

The resulting type after applying the - operator.
Source§

fn sub(self, vector: &Vector) -> Self::Output

Performs the - operation. Read more
Source§

impl<U> Sub<Vector> for QuantityVector<U>

Source§

type Output = TensorVector<Quantity<U>>

The resulting type after applying the - operator.
Source§

fn sub(self, vector: Vector) -> Self::Output

Performs the - operation. Read more