Skip to main content

TensorRank1Vec

Type Alias TensorRank1Vec 

Source
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>

Source

pub fn bounding_box(&self) -> TensorRank1List<D, I, 2, U>

Source

pub fn zero(len: usize) -> Self

Trait Implementations§

Source§

impl<const D: usize, I> AssertFd for TensorRank1Vec<D, I>

Source§

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>>

The resulting type after applying the / operator.
Source§

fn div( self, _tensor_rank_2_sparse_symmetric_vec_2d: TensorRank2SparseVec2DSymmetric<D, I, J, V>, ) -> Self::Output

Performs the / operation. Read more
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>,

Source§

type Output = TensorVector<TensorRank1<D, J, <U as UnitDiv<V>>::Output>>

The resulting type after applying the / operator.
Source§

fn div( self, _tensor_rank_2_sparse_vec_2d: TensorRank2SparseVec2D<D, I, J, V>, ) -> Self::Output

Performs the / operation. Read more
Source§

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>>

The resulting type after applying the / operator.
Source§

fn div( self, _tensor_rank_2_vec_2d: TensorRank2Vec2D<D, I, J, U>, ) -> Self::Output

Performs the / operation. Read more
Source§

impl<const D: usize, I, U> FiniteDifference for TensorRank1Vec<D, I, U>

Source§

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

Source§

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

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>

Source§

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>

Source§

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>

Source§

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> From<Vec<Vec<f64>>> for TensorRank1Vec<D, I, U>

Source§

fn from(vec: Vec<Vec<TensorRank0>>) -> Self

Converts to this type from the input type.
Source§

impl<const D: usize, I, U> From<Vec<[f64; D]>> for TensorRank1Vec<D, I, U>

Source§

fn from(vec: Vec<[TensorRank0; D]>) -> Self

Converts to this type from the input type.
Source§

impl<const D: usize, I, U> From<Vector> for TensorRank1Vec<D, I, U>

Source§

fn from(vector: Vector) -> Self

Converts to this type from the input type.
Source§

impl<const D: usize, I, const N: usize, U> From<[[f64; D]; N]> for TensorRank1Vec<D, I, U>

Source§

fn from(array: [[TensorRank0; D]; N]) -> Self

Converts to this type from the input type.
Source§

impl<const D: usize, I, U> Jacobian for TensorRank1Vec<D, I, 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<const D: usize, I, U> Solution for TensorRank1Vec<D, I, 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<const D: usize, I, U> Sub<&Vector> for TensorRank1Vec<D, I, U>

Source§

type Output = TensorVector<TensorRank1<D, I, U>>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const D: usize, I, U> Sub<Vector> for TensorRank1Vec<D, I, U>

Source§

type Output = TensorVector<TensorRank1<D, I, U>>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<const D: usize, I, U> TryFrom<[Vec<f64>; D]> for TensorRank1Vec<D, I, U>

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(vec_array: [Vec<TensorRank0>; D]) -> Result<Self, Self::Error>

Performs the conversion.