pub struct TensorRank1<const D: usize, I, U = Dimensionless>(/* private fields */);Expand description
A d-dimensional tensor of rank 1.
D is the dimension, I is the configuration.
Implementations§
Source§impl<const D: usize, I, U> TensorRank1<D, I, U>
impl<const D: usize, I, U> TensorRank1<D, I, U>
Sourcepub fn with_unit<V>(self) -> TensorRank1<D, I, V>
pub fn with_unit<V>(self) -> TensorRank1<D, I, V>
Asserts that the tensor carries the given unit.
Sourcepub fn normalized(self) -> TensorRank1<D, I, Dimensionless>
pub fn normalized(self) -> TensorRank1<D, I, Dimensionless>
Returns the direction the tensor points in.
Source§impl<const D: usize, I, U> TensorRank1<D, I, U>
impl<const D: usize, I, U> TensorRank1<D, I, U>
Sourcepub const fn const_from(array: [TensorRank0; D]) -> Self
pub const fn const_from(array: [TensorRank0; D]) -> Self
Associated function for const type conversion.
Source§impl<const D: usize, I, U> TensorRank1<D, I, U>
impl<const D: usize, I, U> TensorRank1<D, I, U>
Sourcepub const fn as_ptr(&self) -> *const TensorRank0
pub const fn as_ptr(&self) -> *const TensorRank0
Returns a raw pointer to the slice’s buffer.
Sourcepub fn orthonormal_basis(&self) -> TensorRank1List<D, I, D, Dimensionless>
pub fn orthonormal_basis(&self) -> TensorRank1List<D, I, D, Dimensionless>
Returns an orthonormal basis whose first vector is this one’s direction.
Trait Implementations§
Source§impl<const D: usize, I, U> Add<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
impl<const D: usize, I, U> Add<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Add<TensorRank1<D, I, U>> for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Add<TensorRank1<D, I, U>> for &TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
+ operator.Source§impl<const D: usize, I, U> Add for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Add for &TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Add for TensorRank1<D, I, U>
impl<const D: usize, I, U> Add for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> AddAssign<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
impl<const D: usize, I, U> AddAssign<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
Source§fn add_assign(&mut self, tensor_rank_1: &Self)
fn add_assign(&mut self, tensor_rank_1: &Self)
Performs the
+= operation. Read moreSource§impl<const D: usize, I, U> AddAssign for TensorRank1<D, I, U>
impl<const D: usize, I, U> AddAssign for TensorRank1<D, I, U>
Source§fn add_assign(&mut self, tensor_rank_1: Self)
fn add_assign(&mut self, tensor_rank_1: Self)
Performs the
+= operation. Read moreSource§impl<const D: usize, I> AssertEq for TensorRank1<D, I>
impl<const D: usize, I> AssertEq for TensorRank1<D, I>
fn eq(a: Self, b: TensorRank1<D, I>) -> Result<(), AssertionError>
fn eq_within_tols( tols: &Assert, a: Self, b: TensorRank1<D, I>, ) -> Result<(), AssertionError>
Source§impl<const D: usize, I> AssertFd for TensorRank1<D, I>
impl<const D: usize, I> AssertFd for TensorRank1<D, I>
fn eq_within_fd_tol( tols: &Assert, a: Self, b: TensorRank1<D, I>, ) -> Result<(), AssertionError>
Source§impl<const D: usize, I, U> Clone for TensorRank1<D, I, U>
impl<const D: usize, I, U> Clone for TensorRank1<D, I, U>
Source§impl<const D: usize, I, J, K, L, U, V, W> ContractSecondFourthWithFirst<&TensorRank1<D, J, V>, &TensorRank1<D, L, W>> for TensorRank4<D, I, J, K, L, U>
impl<const D: usize, I, J, K, L, U, V, W> ContractSecondFourthWithFirst<&TensorRank1<D, J, V>, &TensorRank1<D, L, W>> for TensorRank4<D, I, J, K, L, U>
type Output = TensorRank2<D, I, K, <<U as UnitMul<V>>::Output as UnitMul<W>>::Output>
fn contract_second_fourth_with_first( &self, tensor_rank_1_a: &TensorRank1<D, J, V>, tensor_rank_1_b: &TensorRank1<D, L, W>, ) -> Self::Output
Source§impl<const D: usize, I, U, V> ContractWith<TensorRank1<D, I, V>> for TensorRank1<D, I, U>where
U: UnitMul<V>,
impl<const D: usize, I, U, V> ContractWith<TensorRank1<D, I, V>> for TensorRank1<D, I, U>where
U: UnitMul<V>,
Source§impl<'a, I, U, V> CrossProduct<&'a TensorRank1<3, I, V>> for &TensorRank1<3, I, U>where
U: UnitMul<V>,
impl<'a, I, U, V> CrossProduct<&'a TensorRank1<3, I, V>> for &TensorRank1<3, I, U>where
U: UnitMul<V>,
Source§impl<I, U, V> CrossProduct<TensorRank1<3, I, V>> for &TensorRank1<3, I, U>where
U: UnitMul<V>,
impl<I, U, V> CrossProduct<TensorRank1<3, I, V>> for &TensorRank1<3, I, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, U> Debug for TensorRank1<D, I, U>
impl<const D: usize, I, U> Debug for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Default for TensorRank1<D, I, U>
impl<const D: usize, I, U> Default for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U, T> Differentiate<T> for TensorRank1<D, I, U>where
U: UnitDiv<T>,
impl<const D: usize, I, U, T> Differentiate<T> for TensorRank1<D, I, U>where
U: UnitDiv<T>,
Source§type Derivative = TensorRank1<D, I, <U as UnitDiv<T>>::Output>
type Derivative = TensorRank1<D, I, <U as UnitDiv<T>>::Output>
The derivative with respect to the variable of integration.
Source§impl<const D: usize, I, U> Display for TensorRank1<D, I, U>
impl<const D: usize, I, U> Display for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Div<&f64> for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Div<&f64> for &TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
/ operator.Source§impl<const D: usize, I, U> Div<&f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> Div<&f64> for TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
/ operator.Source§impl<const D: usize, I, J, U, V> Div<TensorRank2<D, I, J, V>> for &TensorRank1<D, I, U>where
U: UnitDiv<V>,
impl<const D: usize, I, J, U, V> Div<TensorRank2<D, I, J, V>> for &TensorRank1<D, I, U>where
U: UnitDiv<V>,
Source§impl<const D: usize, I, U> Div<f64> for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Div<f64> for &TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
/ operator.Source§impl<const D: usize, I, U> Div<f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> Div<f64> for TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
/ operator.Source§impl<const D: usize, I, U> DivAssign<&f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> DivAssign<&f64> for TensorRank1<D, I, U>
Source§fn div_assign(&mut self, tensor_rank_0: &TensorRank0)
fn div_assign(&mut self, tensor_rank_0: &TensorRank0)
Performs the
/= operation. Read moreSource§impl<const D: usize, I, U> DivAssign<f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> DivAssign<f64> for TensorRank1<D, I, U>
Source§fn div_assign(&mut self, tensor_rank_0: TensorRank0)
fn div_assign(&mut self, tensor_rank_0: TensorRank0)
Performs the
/= operation. Read moreSource§impl<const D: usize, I, U> Erase for TensorRank1<D, I, U>
impl<const D: usize, I, U> Erase for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> FiniteDifference for TensorRank1<D, I, U>
impl<const D: usize, I, U> FiniteDifference for TensorRank1<D, I, U>
Source§impl<const D: usize, U> From<&TensorRank1<D, Current, U>> for TensorRank1<D, Reference, U>
impl<const D: usize, U> From<&TensorRank1<D, Current, U>> for TensorRank1<D, Reference, U>
Source§fn from(tensor_rank_1: &TensorRank1<D, Current, U>) -> Self
fn from(tensor_rank_1: &TensorRank1<D, Current, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<&TensorRank1<D, Projection, U>> for TensorRank1<D, Reference, U>
impl<const D: usize, U> From<&TensorRank1<D, Projection, U>> for TensorRank1<D, Reference, U>
Source§fn from(tensor_rank_1: &TensorRank1<D, Projection, U>) -> Self
fn from(tensor_rank_1: &TensorRank1<D, Projection, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<&TensorRank1<D, Reference, U>> for TensorRank1<D, Current, U>
impl<const D: usize, U> From<&TensorRank1<D, Reference, U>> for TensorRank1<D, Current, U>
Source§fn from(tensor_rank_1: &TensorRank1<D, Reference, U>) -> Self
fn from(tensor_rank_1: &TensorRank1<D, Reference, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, I, U> From<[f64; D]> for TensorRank1<D, I, U>
impl<const D: usize, I, U> From<[f64; D]> for TensorRank1<D, I, U>
Source§fn from(array: [TensorRank0; D]) -> Self
fn from(array: [TensorRank0; D]) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<TensorRank1<D, Current, U>> for TensorRank1<D, Reference, U>
impl<const D: usize, U> From<TensorRank1<D, Current, U>> for TensorRank1<D, Reference, U>
Source§fn from(tensor_rank_1: TensorRank1<D, Current, U>) -> Self
fn from(tensor_rank_1: TensorRank1<D, Current, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, I, U> From<TensorRank1<D, I, U>> for [TensorRank0; D]
impl<const D: usize, I, U> From<TensorRank1<D, I, U>> for [TensorRank0; D]
Source§fn from(tensor_rank_1: TensorRank1<D, I, U>) -> Self
fn from(tensor_rank_1: TensorRank1<D, I, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, I, U> From<TensorRank1<D, I, U>> for Vec<TensorRank0>
impl<const D: usize, I, U> From<TensorRank1<D, I, U>> for Vec<TensorRank0>
Source§fn from(tensor_rank_1: TensorRank1<D, I, U>) -> Self
fn from(tensor_rank_1: TensorRank1<D, I, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<TensorRank1<D, Projection, U>> for TensorRank1<D, Reference, U>
impl<const D: usize, U> From<TensorRank1<D, Projection, U>> for TensorRank1<D, Reference, U>
Source§fn from(tensor_rank_1: TensorRank1<D, Projection, U>) -> Self
fn from(tensor_rank_1: TensorRank1<D, Projection, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, U> From<TensorRank1<D, Reference, U>> for TensorRank1<D, Current, U>
impl<const D: usize, U> From<TensorRank1<D, Reference, U>> for TensorRank1<D, Current, U>
Source§fn from(tensor_rank_1: TensorRank1<D, Reference, U>) -> Self
fn from(tensor_rank_1: TensorRank1<D, Reference, U>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, I, U> From<Vec<f64>> for TensorRank1<D, I, U>
impl<const D: usize, I, U> From<Vec<f64>> for TensorRank1<D, I, U>
Source§fn from(vec: Vec<TensorRank0>) -> Self
fn from(vec: Vec<TensorRank0>) -> Self
Converts to this type from the input type.
Source§impl<const D: usize, I, U> FromIterator<Quantity<U>> for TensorRank1<D, I, U>
impl<const D: usize, I, U> FromIterator<Quantity<U>> for TensorRank1<D, I, U>
Source§impl<const D: usize, I, J, U> FromIterator<TensorRank1<D, J, U>> for TensorRank2<D, I, J, U>
impl<const D: usize, I, J, U> FromIterator<TensorRank1<D, J, U>> for TensorRank2<D, I, J, U>
Source§fn from_iter<Ii: IntoIterator<Item = TensorRank1<D, J, U>>>(
into_iterator: Ii,
) -> Self
fn from_iter<Ii: IntoIterator<Item = TensorRank1<D, J, U>>>( into_iterator: Ii, ) -> Self
Creates a value from an iterator. Read more
Source§impl<const D: usize, I, U> FromIterator<f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> FromIterator<f64> for TensorRank1<D, I, U>
Source§fn from_iter<Ii: IntoIterator<Item = TensorRank0>>(into_iterator: Ii) -> Self
fn from_iter<Ii: IntoIterator<Item = TensorRank0>>(into_iterator: Ii) -> Self
Creates a value from an iterator. Read more
Source§impl<const D: usize, I, U> IntoIterator for TensorRank1<D, I, U>
impl<const D: usize, I, U> IntoIterator for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Jacobian for TensorRank1<D, I, U>
impl<const D: usize, I, U> Jacobian for TensorRank1<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, V> Mul<&Quantity<V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
impl<const D: usize, I, U, V> Mul<&Quantity<V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, U, V> Mul<&TensorRank1<D, I, V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
impl<const D: usize, I, U, V> Mul<&TensorRank1<D, I, V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, U, V> Mul<&TensorRank1<D, I, V>> for TensorRank1<D, I, U>where
U: UnitMul<V>,
impl<const D: usize, I, U, V> Mul<&TensorRank1<D, I, V>> for TensorRank1<D, I, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, U, V> Mul<&TensorRank1<D, J, V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<&TensorRank1<D, J, V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, U, V> Mul<&TensorRank1<D, J, V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<&TensorRank1<D, J, V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, J, K, L, M, U, V> Mul<&TensorRank4<D, M, J, K, L, V>> for &TensorRank1<D, M, U>where
U: UnitMul<V>,
impl<const D: usize, J, K, L, M, U, V> Mul<&TensorRank4<D, M, J, K, L, V>> for &TensorRank1<D, M, U>where
U: UnitMul<V>,
Source§impl<const D: usize, J, K, L, M, U, V> Mul<&TensorRank4<D, M, J, K, L, V>> for TensorRank1<D, M, U>where
U: UnitMul<V>,
impl<const D: usize, J, K, L, M, U, V> Mul<&TensorRank4<D, M, J, K, L, V>> for TensorRank1<D, M, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, U> Mul<&f64> for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Mul<&f64> for &TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
* operator.Source§impl<const D: usize, I, U> Mul<&f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> Mul<&f64> for TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
* operator.Source§impl<const D: usize, I, U, V> Mul<TensorRank1<D, I, V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
impl<const D: usize, I, U, V> Mul<TensorRank1<D, I, V>> for &TensorRank1<D, I, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, U, V> Mul<TensorRank1<D, J, V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<TensorRank1<D, J, V>> for &TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, J, U, V> Mul<TensorRank1<D, J, V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
impl<const D: usize, I, J, U, V> Mul<TensorRank1<D, J, V>> for TensorRank2<D, I, J, U>where
U: UnitMul<V>,
Source§impl<const D: usize, J, K, L, M, U, V> Mul<TensorRank4<D, M, J, K, L, V>> for &TensorRank1<D, M, U>where
U: UnitMul<V>,
impl<const D: usize, J, K, L, M, U, V> Mul<TensorRank4<D, M, J, K, L, V>> for &TensorRank1<D, M, U>where
U: UnitMul<V>,
Source§impl<const D: usize, J, K, L, M, U, V> Mul<TensorRank4<D, M, J, K, L, V>> for TensorRank1<D, M, U>where
U: UnitMul<V>,
impl<const D: usize, J, K, L, M, U, V> Mul<TensorRank4<D, M, J, K, L, V>> for TensorRank1<D, M, U>where
U: UnitMul<V>,
Source§impl<const D: usize, I, U> Mul<f64> for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Mul<f64> for &TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
* operator.Source§impl<const D: usize, I, U> Mul<f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> Mul<f64> for TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
* operator.Source§impl<const D: usize, I, U> Mul for TensorRank1<D, I, U>
impl<const D: usize, I, U> Mul for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> MulAssign<&f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> MulAssign<&f64> for TensorRank1<D, I, U>
Source§fn mul_assign(&mut self, tensor_rank_0: &TensorRank0)
fn mul_assign(&mut self, tensor_rank_0: &TensorRank0)
Performs the
*= operation. Read moreSource§impl<const D: usize, I, U> MulAssign<f64> for TensorRank1<D, I, U>
impl<const D: usize, I, U> MulAssign<f64> for TensorRank1<D, I, U>
Source§fn mul_assign(&mut self, tensor_rank_0: TensorRank0)
fn mul_assign(&mut self, tensor_rank_0: TensorRank0)
Performs the
*= operation. Read moreSource§impl<const D: usize, I, U> Neg for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Neg for &TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Neg for TensorRank1<D, I, U>
impl<const D: usize, I, U> Neg for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> PartialEq for TensorRank1<D, I, U>
impl<const D: usize, I, U> PartialEq for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Solution for TensorRank1<D, I, U>
impl<const D: usize, I, U> Solution for TensorRank1<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.
Source§impl<const D: usize, I, U> Sub<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
impl<const D: usize, I, U> Sub<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Sub<TensorRank1<D, I, U>> for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Sub<TensorRank1<D, I, U>> for &TensorRank1<D, I, U>
Source§type Output = TensorRank1<D, I, U>
type Output = TensorRank1<D, I, U>
The resulting type after applying the
- operator.Source§impl<const D: usize, I, U> Sub for &TensorRank1<D, I, U>
impl<const D: usize, I, U> Sub for &TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Sub for TensorRank1<D, I, U>
impl<const D: usize, I, U> Sub for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> SubAssign<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
impl<const D: usize, I, U> SubAssign<&TensorRank1<D, I, U>> for TensorRank1<D, I, U>
Source§fn sub_assign(&mut self, tensor_rank_1: &Self)
fn sub_assign(&mut self, tensor_rank_1: &Self)
Performs the
-= operation. Read moreSource§impl<const D: usize, I, U> SubAssign for TensorRank1<D, I, U>
impl<const D: usize, I, U> SubAssign for TensorRank1<D, I, U>
Source§fn sub_assign(&mut self, tensor_rank_1: Self)
fn sub_assign(&mut self, tensor_rank_1: Self)
Performs the
-= operation. Read moreSource§impl<'a, const D: usize, I, U> Sum<&'a TensorRank1<D, I, U>> for TensorRank1<D, I, U>
impl<'a, const D: usize, I, U> Sum<&'a TensorRank1<D, I, U>> for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Sum for TensorRank1<D, I, U>
impl<const D: usize, I, U> Sum for TensorRank1<D, I, U>
Source§impl<const D: usize, I, U> Tensor for TensorRank1<D, I, U>
impl<const D: usize, I, U> Tensor for TensorRank1<D, I, U>
Source§fn full_contraction(&self, tensor_rank_1: &Self) -> TensorRank0
fn full_contraction(&self, tensor_rank_1: &Self) -> TensorRank0
Returns the full contraction with another tensor.
Source§fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>
fn iter_mut(&mut self) -> impl Iterator<Item = &mut Self::Item>
Returns an iterator that allows modifying each value. Read more
Source§fn error_count_zero(&self, tol_abs: Scalar, tol_rel: Scalar) -> Option<usize>
fn error_count_zero(&self, tol_abs: Scalar, tol_rel: Scalar) -> Option<usize>
Returns number of nonzero entries given absolute and relative tolerances.
Source§fn error_count(
&self,
other: &Self,
tol_abs: Scalar,
tol_rel: Scalar,
) -> Option<usize>
fn error_count( &self, other: &Self, tol_abs: Scalar, tol_rel: Scalar, ) -> Option<usize>
Returns number of different entries given absolute and relative tolerances.
Source§fn norm_p_sum(&self, p: TensorRank0) -> TensorRank0
fn norm_p_sum(&self, p: TensorRank0) -> TensorRank0
Returns the sum of p-th powers of absolute values (used internally by
norm_p).Source§impl<const D: usize, I, U> TensorArray for TensorRank1<D, I, U>
impl<const D: usize, I, U> TensorArray for TensorRank1<D, I, U>
Auto Trait Implementations§
impl<const D: usize, I, U> Freeze for TensorRank1<D, I, U>
impl<const D: usize, I, U> RefUnwindSafe for TensorRank1<D, I, U>where
I: RefUnwindSafe,
U: RefUnwindSafe,
impl<const D: usize, I, U> Send for TensorRank1<D, I, U>
impl<const D: usize, I, U> Sync for TensorRank1<D, I, U>
impl<const D: usize, I, U> Unpin for TensorRank1<D, I, U>
impl<const D: usize, I, U> UnsafeUnpin for TensorRank1<D, I, U>
impl<const D: usize, I, U> UnwindSafe for TensorRank1<D, I, U>where
I: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T> AssertEq<&'a T> for T
impl<'a, T> AssertEq<&'a T> for T
fn eq(a: T, b: &'a T) -> Result<(), AssertionError>
fn eq_within_tols(tols: &Assert, a: T, b: &'a T) -> Result<(), AssertionError>
Source§impl<'a, T> AssertFd<&'a T> for T
impl<'a, T> AssertFd<&'a T> for T
fn eq_within_fd_tol(tols: &Assert, a: T, b: &'a T) -> Result<(), AssertionError>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more