pub type TensorRank1Vec<const D: usize, const I: usize> = TensorVector<TensorRank1<D, I>>;Expand description
A vector of rank-1 tensors.
Aliased Type§
pub struct TensorRank1Vec<const D: usize, const I: usize>(/* private fields */);Implementations§
Source§impl<const D: usize, const I: usize> TensorRank1Vec<D, I>
impl<const D: usize, const I: usize> TensorRank1Vec<D, I>
pub fn bounding_box(&self) -> TensorRank1List<D, I, 2>
pub fn zero(len: usize) -> Self
Trait Implementations§
Source§impl<const D: usize, const I: usize> AssertFd for TensorRank1Vec<D, I>
impl<const D: usize, const I: usize> 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, const I: usize, const J: usize> Div<TensorRank2SparseVec2DSymmetric<D, I, J>> for &TensorRank1Vec<D, I>
impl<const D: usize, const I: usize, const J: usize> Div<TensorRank2SparseVec2DSymmetric<D, I, J>> for &TensorRank1Vec<D, I>
Source§type Output = TensorVector<TensorRank1<D, J>>
type Output = TensorVector<TensorRank1<D, J>>
The resulting type after applying the
/ operator.Source§impl<const D: usize, const I: usize, const J: usize> Div<TensorVector<TensorRank2SparseVec<D, I, J>>> for &TensorRank1Vec<D, I>
impl<const D: usize, const I: usize, const J: usize> Div<TensorVector<TensorRank2SparseVec<D, I, J>>> for &TensorRank1Vec<D, I>
Source§type Output = TensorVector<TensorRank1<D, J>>
type Output = TensorVector<TensorRank1<D, J>>
The resulting type after applying the
/ operator.Source§impl<const D: usize, const I: usize, const J: usize> Div<TensorVector<TensorVector<TensorRank2<D, I, J>>>> for &TensorRank1Vec<D, I>
impl<const D: usize, const I: usize, const J: usize> Div<TensorVector<TensorVector<TensorRank2<D, I, J>>>> for &TensorRank1Vec<D, I>
Source§type Output = TensorVector<TensorRank1<D, J>>
type Output = TensorVector<TensorRank1<D, J>>
The resulting type after applying the
/ operator.Source§impl<const D: usize, const I: usize> FiniteDifference for TensorRank1Vec<D, I>
impl<const D: usize, const I: usize> FiniteDifference for TensorRank1Vec<D, I>
Source§impl<const D: usize> From<&TensorVector<TensorRank1<D, 0>>> for TensorRank1Vec<D, 1>
impl<const D: usize> From<&TensorVector<TensorRank1<D, 0>>> for TensorRank1Vec<D, 1>
Source§fn from(tensor_rank_1_vec: &TensorRank1Vec<D, 0>) -> Self
fn from(tensor_rank_1_vec: &TensorRank1Vec<D, 0>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize> From<&TensorVector<TensorRank1<D, 1>>> for TensorRank1Vec<D, 0>
impl<const D: usize> From<&TensorVector<TensorRank1<D, 1>>> for TensorRank1Vec<D, 0>
Source§fn from(tensor_rank_1_vec: &TensorRank1Vec<D, 1>) -> Self
fn from(tensor_rank_1_vec: &TensorRank1Vec<D, 1>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, const I: usize, const N: usize> From<[[f64; D]; N]> for TensorRank1Vec<D, I>
impl<const D: usize, const I: usize, const N: usize> From<[[f64; D]; N]> for TensorRank1Vec<D, I>
Source§impl<const D: usize> From<TensorVector<TensorRank1<D, 0>>> for TensorRank1Vec<D, 1>
impl<const D: usize> From<TensorVector<TensorRank1<D, 0>>> for TensorRank1Vec<D, 1>
Source§fn from(tensor_rank_1_vec: TensorRank1Vec<D, 0>) -> Self
fn from(tensor_rank_1_vec: TensorRank1Vec<D, 0>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize> From<TensorVector<TensorRank1<D, 1>>> for TensorRank1Vec<D, 0>
impl<const D: usize> From<TensorVector<TensorRank1<D, 1>>> for TensorRank1Vec<D, 0>
Source§fn from(tensor_rank_1_vec: TensorRank1Vec<D, 1>) -> Self
fn from(tensor_rank_1_vec: TensorRank1Vec<D, 1>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, const I: usize> Jacobian for TensorRank1Vec<D, I>
impl<const D: usize, const I: usize> Jacobian for TensorRank1Vec<D, I>
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, const I: usize> Solution for TensorRank1Vec<D, I>
impl<const D: usize, const I: usize> Solution for TensorRank1Vec<D, I>
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.