Type Alias TensorRank1Vec

Source
pub type TensorRank1Vec<const D: usize, const I: usize> = TensorVector<TensorRank1<D, I>>;

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 zero(len: usize) -> Self

Trait Implementations§

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, 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 From<TensorVector<TensorRank1<3, 0>>> for TensorRank1Vec<3, 1>

Source§

fn from(tensor_rank_1_vec: TensorRank1Vec<3, 0>) -> Self

Converts to this type from the input type.
Source§

impl From<TensorVector<TensorRank1<3, 1>>> for TensorRank1Vec<3, 0>

Source§

fn from(tensor_rank_1_vec: TensorRank1Vec<3, 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