pub type TensorRank1Vec<const D: usize, I, U = Dimensionless> = TensorVector<TensorRank1<D, I, U>>;Expand description
A vector of rank-1 tensors.
Aliased Type§
pub struct TensorRank1Vec<const D: usize, I, U = Dimensionless>(/* private fields */);Implementations§
Source§impl<const D: usize, I, U> TensorRank1Vec<D, I, U>
impl<const D: usize, I, U> TensorRank1Vec<D, I, U>
pub fn bounding_box(&self) -> TensorRank1List<D, I, 2, U>
pub fn zero(len: usize) -> Self
Trait Implementations§
Source§impl<const D: usize, I> AssertFd for TensorRank1Vec<D, I>
impl<const D: usize, I> AssertFd for TensorRank1Vec<D, I>
fn eq_within_fd_tol( tols: &Assert, a: Self, b: TensorRank1Vec<D, I>, ) -> Result<(), AssertionError>
Source§impl<const D: usize, I, J, U, V> Div<TensorRank2SparseVec2DSymmetric<D, I, J, V>> for &TensorRank1Vec<D, I, U>where
U: UnitDiv<V>,
impl<const D: usize, I, J, U, V> Div<TensorRank2SparseVec2DSymmetric<D, I, J, V>> for &TensorRank1Vec<D, I, U>where
U: UnitDiv<V>,
Source§type Output = TensorVector<TensorRank1<D, J, <U as UnitDiv<V>>::Output>>
type Output = TensorVector<TensorRank1<D, J, <U as UnitDiv<V>>::Output>>
The resulting type after applying the
/ operator.Source§impl<const D: usize, I, J, U, V> Div<TensorVector<TensorRank2SparseVec<D, I, J, V>>> for &TensorRank1Vec<D, I, U>where
U: UnitDiv<V>,
impl<const D: usize, I, J, U, V> Div<TensorVector<TensorRank2SparseVec<D, I, J, V>>> for &TensorRank1Vec<D, I, U>where
U: UnitDiv<V>,
Source§type Output = TensorVector<TensorRank1<D, J, <U as UnitDiv<V>>::Output>>
type Output = TensorVector<TensorRank1<D, J, <U as UnitDiv<V>>::Output>>
The resulting type after applying the
/ operator.Source§impl<const D: usize, I, J, U> Div<TensorVector<TensorVector<TensorRank2<D, I, J, U>>>> for &TensorRank1Vec<D, I, U>
impl<const D: usize, I, J, U> Div<TensorVector<TensorVector<TensorRank2<D, I, J, U>>>> for &TensorRank1Vec<D, I, U>
Source§type Output = TensorVector<TensorRank1<D, J, U>>
type Output = TensorVector<TensorRank1<D, J, U>>
The resulting type after applying the
/ operator.Source§impl<const D: usize, I, U> FiniteDifference for TensorRank1Vec<D, I, U>
impl<const D: usize, I, U> FiniteDifference for TensorRank1Vec<D, I, U>
Source§impl<const D: usize, U> From<&TensorVector<TensorRank1<D, Current, U>>> for TensorRank1Vec<D, Reference, U>
impl<const D: usize, U> From<&TensorVector<TensorRank1<D, Current, U>>> for TensorRank1Vec<D, Reference, U>
Source§fn from(tensor_rank_1_vec: &TensorRank1Vec<D, Current, U>) -> Self
fn from(tensor_rank_1_vec: &TensorRank1Vec<D, Current, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<&TensorVector<TensorRank1<D, Reference, U>>> for TensorRank1Vec<D, Current, U>
impl<const D: usize, U> From<&TensorVector<TensorRank1<D, Reference, U>>> for TensorRank1Vec<D, Current, U>
Source§fn from(tensor_rank_1_vec: &TensorRank1Vec<D, Reference, U>) -> Self
fn from(tensor_rank_1_vec: &TensorRank1Vec<D, Reference, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<TensorVector<TensorRank1<D, Current, U>>> for TensorRank1Vec<D, Reference, U>
impl<const D: usize, U> From<TensorVector<TensorRank1<D, Current, U>>> for TensorRank1Vec<D, Reference, U>
Source§fn from(tensor_rank_1_vec: TensorRank1Vec<D, Current, U>) -> Self
fn from(tensor_rank_1_vec: TensorRank1Vec<D, Current, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<TensorVector<TensorRank1<D, Reference, U>>> for TensorRank1Vec<D, Current, U>
impl<const D: usize, U> From<TensorVector<TensorRank1<D, Reference, U>>> for TensorRank1Vec<D, Current, U>
Source§fn from(tensor_rank_1_vec: TensorRank1Vec<D, Reference, U>) -> Self
fn from(tensor_rank_1_vec: TensorRank1Vec<D, Reference, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, I, U> Jacobian for TensorRank1Vec<D, I, U>
impl<const D: usize, I, U> Jacobian for TensorRank1Vec<D, I, U>
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<const D: usize, I, U> Solution for TensorRank1Vec<D, I, U>
impl<const D: usize, I, U> Solution for TensorRank1Vec<D, I, U>
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.