Skip to main content

TensorRank1Vec

Type Alias TensorRank1Vec 

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

Source

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

Source

pub fn zero(len: usize) -> Self

Trait Implementations§

Source§

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

Source§

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

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

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

Source§

impl<const D: usize> From<&TensorVector<TensorRank1<D, 0>>> for TensorRank1Vec<D, 1>

Source§

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>

Source§

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>

Source§

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

Converts to this type from the input type.
Source§

impl<const D: usize> From<TensorVector<TensorRank1<D, 0>>> for TensorRank1Vec<D, 1>

Source§

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>

Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<const D: usize, const I: usize> From<Vec<Vec<f64>>> for TensorRank1Vec<D, I>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn from(vector: Vector) -> Self

Converts to this type from the input type.
Source§

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

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, const I: usize> Solution for TensorRank1Vec<D, I>

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

Source§

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

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, const I: usize> Sub<Vector> for TensorRank1Vec<D, I>

Source§

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

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, const I: usize> TryFrom<[Vec<f64>; D]> for TensorRank1Vec<D, I>

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.