Struct num_dual::HyperDualVec
source · pub struct HyperDualVec<T, F, const M: usize, const N: usize> {
pub re: T,
pub eps1: StaticVec<T, M>,
pub eps2: StaticVec<T, N>,
pub eps1eps2: StaticMat<T, M, N>,
/* private fields */
}Expand description
A hyper dual number for the calculation of second partial derivatives.
Fields§
§re: TReal part of the hyper dual number
eps1: StaticVec<T, M>Partial derivative part of the hyper dual number
eps2: StaticVec<T, N>Partial derivative part of the hyper dual number
eps1eps2: StaticMat<T, M, N>Second partial derivative part of the hyper dual number
Implementations§
source§impl<T, F, const M: usize, const N: usize> HyperDualVec<T, F, M, N>
impl<T, F, const M: usize, const N: usize> HyperDualVec<T, F, M, N>
source§impl<T, F> HyperDualVec<T, F, 1, 1>
impl<T, F> HyperDualVec<T, F, 1, 1>
sourcepub fn new_scalar(re: T, eps1: T, eps2: T, eps1eps2: T) -> Self
pub fn new_scalar(re: T, eps1: T, eps2: T, eps1eps2: T) -> Self
Create a new scalar hyper dual number from its fields.
source§impl<T: One, F, const N: usize> HyperDualVec<T, F, 1, N>
impl<T: One, F, const N: usize> HyperDualVec<T, F, 1, N>
Trait Implementations§
source§impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
+ operator.source§fn add(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
fn add(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
Performs the
+ operation. Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
+ operator.source§impl<T: AddAssign<F>, F: Float, const M: usize, const N: usize> Add<F> for HyperDualVec<T, F, M, N>
impl<T: AddAssign<F>, F: Float, const M: usize, const N: usize> Add<F> for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
+ operator.source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Add<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
+ operator.source§impl<T: AddAssign<F>, F: Float, const M: usize, const N: usize> AddAssign<F> for HyperDualVec<T, F, M, N>
impl<T: AddAssign<F>, F: Float, const M: usize, const N: usize> AddAssign<F> for HyperDualVec<T, F, M, N>
source§fn add_assign(&mut self, other: F)
fn add_assign(&mut self, other: F)
Performs the
+= operation. Read moresource§impl<T: Copy + AddAssign, F: Float, const M: usize, const N: usize> AddAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: Copy + AddAssign, F: Float, const M: usize, const N: usize> AddAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresource§impl<T: Clone, F: Clone, const M: usize, const N: usize> Clone for HyperDualVec<T, F, M, N>
impl<T: Clone, F: Clone, const M: usize, const N: usize> Clone for HyperDualVec<T, F, M, N>
source§fn clone(&self) -> HyperDualVec<T, F, M, N>
fn clone(&self) -> HyperDualVec<T, F, M, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Display, F: Display, const M: usize, const N: usize> Display for HyperDualVec<T, F, M, N>
impl<T: Display, F: Display, const M: usize, const N: usize> Display for HyperDualVec<T, F, M, N>
source§impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
/ operator.source§fn div(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
fn div(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
Performs the
/ operation. Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
/ operator.source§impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Div<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Div<F> for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
/ operator.source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Div<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
/ operator.source§impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> DivAssign<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> DivAssign<F> for HyperDualVec<T, F, M, N>
source§fn div_assign(&mut self, other: F)
fn div_assign(&mut self, other: F)
Performs the
/= operation. Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> DivAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> DivAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moresource§impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> DualNum<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> DualNum<F> for HyperDualVec<T, F, M, N>
source§fn sin_cos(&self) -> (Self, Self)
fn sin_cos(&self) -> (Self, Self)
Calculate sine and cosine simultaneously
source§impl<T: DualNum<F>, F: Float + FloatConst, const M: usize, const N: usize> FloatConst for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float + FloatConst, const M: usize, const N: usize> FloatConst for HyperDualVec<T, F, M, N>
source§impl<T: Copy + Zero + AddAssign + From<F>, F, const M: usize, const N: usize> From<F> for HyperDualVec<T, F, M, N>
impl<T: Copy + Zero + AddAssign + From<F>, F, const M: usize, const N: usize> From<F> for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F>, F: Float + FromPrimitive, const M: usize, const N: usize> FromPrimitive for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float + FromPrimitive, const M: usize, const N: usize> FromPrimitive for HyperDualVec<T, F, M, N>
source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresource§impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Inv for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Inv for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F> + IsDerivativeZero, F: Float, const M: usize, const N: usize> IsDerivativeZero for HyperDualVec<T, F, M, N>
impl<T: DualNum<F> + IsDerivativeZero, F: Float, const M: usize, const N: usize> IsDerivativeZero for HyperDualVec<T, F, M, N>
fn is_derivative_zero(&self) -> bool
source§impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
* operator.source§fn mul(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
fn mul(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
Performs the
* operation. Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
* operator.source§impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Mul<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Mul<F> for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
* operator.source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Mul<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
* operator.source§impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> MulAssign<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> MulAssign<F> for HyperDualVec<T, F, M, N>
source§fn mul_assign(&mut self, other: F)
fn mul_assign(&mut self, other: F)
Performs the
*= operation. Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> MulAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> MulAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moresource§impl<T: Copy + Neg<Output = T>, F: Float, const M: usize, const N: usize> Neg for &HyperDualVec<T, F, M, N>
impl<T: Copy + Neg<Output = T>, F: Float, const M: usize, const N: usize> Neg for &HyperDualVec<T, F, M, N>
source§impl<T: Copy + Neg<Output = T>, F: Float, const M: usize, const N: usize> Neg for HyperDualVec<T, F, M, N>
impl<T: Copy + Neg<Output = T>, F: Float, const M: usize, const N: usize> Neg for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F> + Signed, F: Float, const M: usize, const N: usize> Num for HyperDualVec<T, F, M, N>
impl<T: DualNum<F> + Signed, F: Float, const M: usize, const N: usize> Num for HyperDualVec<T, F, M, N>
type FromStrRadixErr = <F as Num>::FromStrRadixErr
source§fn from_str_radix(_str: &str, _radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(_str: &str, _radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically
2..=36). Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> One for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> One for HyperDualVec<T, F, M, N>
source§impl<T: PartialEq, F: PartialEq, const M: usize, const N: usize> PartialEq<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: PartialEq, F: PartialEq, const M: usize, const N: usize> PartialEq<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn eq(&self, other: &HyperDualVec<T, F, M, N>) -> bool
fn eq(&self, other: &HyperDualVec<T, F, M, N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a, T: DualNum<F>, F: Float, const M: usize, const N: usize> Product<&'a HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<'a, T: DualNum<F>, F: Float, const M: usize, const N: usize> Product<&'a HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn product<I>(iter: I) -> Selfwhere
I: Iterator<Item = &'a HyperDualVec<T, F, M, N>>,
fn product<I>(iter: I) -> Selfwhere
I: Iterator<Item = &'a HyperDualVec<T, F, M, N>>,
Method which takes an iterator and generates
Self from the elements by
multiplying the items.source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Product<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Product<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§impl<'a, 'b, T, F, const M: usize, const N: usize> Rem<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T, F, const M: usize, const N: usize> Rem<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
% operator.source§fn rem(self, _other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
fn rem(self, _other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
Performs the
% operation. Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Rem<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Rem<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
% operator.source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Rem<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Rem<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
% operator.source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Rem<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Rem<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
% operator.source§impl<T, F: Float, const M: usize, const N: usize> RemAssign<F> for HyperDualVec<T, F, M, N>
impl<T, F: Float, const M: usize, const N: usize> RemAssign<F> for HyperDualVec<T, F, M, N>
source§fn rem_assign(&mut self, _other: F)
fn rem_assign(&mut self, _other: F)
Performs the
%= operation. Read moresource§impl<T, F: Float, const M: usize, const N: usize> RemAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T, F: Float, const M: usize, const N: usize> RemAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn rem_assign(&mut self, _other: Self)
fn rem_assign(&mut self, _other: Self)
Performs the
%= operation. Read moresource§impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Signed for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, const M: usize, const N: usize> Signed for HyperDualVec<T, F, M, N>
source§fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Returns true if the number is positive and false if the number is zero or negative.
source§fn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Returns true if the number is negative and false if the number is zero or positive.
source§impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
- operator.source§fn sub(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
fn sub(self, other: &HyperDualVec<T, F, M, N>) -> HyperDualVec<T, F, M, N>
Performs the
- operation. Read moresource§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
- operator.source§impl<T: SubAssign<F>, F: Float, const M: usize, const N: usize> Sub<F> for HyperDualVec<T, F, M, N>
impl<T: SubAssign<F>, F: Float, const M: usize, const N: usize> Sub<F> for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
- operator.source§impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sub<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
§type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
- operator.source§impl<T: SubAssign<F>, F: Float, const M: usize, const N: usize> SubAssign<F> for HyperDualVec<T, F, M, N>
impl<T: SubAssign<F>, F: Float, const M: usize, const N: usize> SubAssign<F> for HyperDualVec<T, F, M, N>
source§fn sub_assign(&mut self, other: F)
fn sub_assign(&mut self, other: F)
Performs the
-= operation. Read moresource§impl<T: Copy + SubAssign, F: Float, const M: usize, const N: usize> SubAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: Copy + SubAssign, F: Float, const M: usize, const N: usize> SubAssign<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moresource§impl<'a, T: DualNum<F>, F: Float, const M: usize, const N: usize> Sum<&'a HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<'a, T: DualNum<F>, F: Float, const M: usize, const N: usize> Sum<&'a HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
source§fn sum<I>(iter: I) -> Selfwhere
I: Iterator<Item = &'a HyperDualVec<T, F, M, N>>,
fn sum<I>(iter: I) -> Selfwhere
I: Iterator<Item = &'a HyperDualVec<T, F, M, N>>,
Method which takes an iterator and generates
Self from the elements by
“summing up” the items.