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
sourceimpl<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>
sourceimpl<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.
sourceimpl<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
sourceimpl<'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.sourcefn 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 moresourceimpl<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.sourcefn add(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
fn add(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
+ operation. Read moresourceimpl<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>
type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
+ operator.sourceimpl<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.sourcefn add(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn add(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
+ operation. Read moresourceimpl<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.sourcefn add(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn add(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
+ operation. Read moresourceimpl<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>
sourcefn add_assign(&mut self, other: F)
fn add_assign(&mut self, other: F)
Performs the
+= operation. Read moresourceimpl<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>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresourceimpl<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>
sourcefn 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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<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>
sourceimpl<'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.sourcefn 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 moresourceimpl<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.sourcefn div(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
fn div(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
/ operation. Read moresourceimpl<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>
type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
/ operator.sourceimpl<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.sourcefn div(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn div(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
/ operation. Read moresourceimpl<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.sourcefn div(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn div(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
/ operation. Read moresourceimpl<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>
sourcefn div_assign(&mut self, other: F)
fn div_assign(&mut self, other: F)
Performs the
/= operation. Read moresourceimpl<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>
sourcefn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moresourceimpl<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>
sourcefn sin_cos(&self) -> (Self, Self)
fn sin_cos(&self) -> (Self, Self)
Calculate sine and cosine simultaneously
sourceimpl<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>
sourcefn FRAC_1_SQRT_2() -> Self
fn FRAC_1_SQRT_2() -> Self
Return
1.0 / sqrt(2.0).sourcefn FRAC_2_SQRT_PI() -> Self
fn FRAC_2_SQRT_PI() -> Self
Return
2.0 / sqrt(π).sourceimpl<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>
sourceimpl<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>
sourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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 moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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. Read moresourcefn 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 moresourceimpl<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>
type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The result after applying the operator.
sourceimpl<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
sourceimpl<'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.sourcefn 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 moresourceimpl<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.sourcefn mul(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
fn mul(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
* operation. Read moresourceimpl<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>
type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
* operator.sourceimpl<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.sourcefn mul(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn mul(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
* operation. Read moresourceimpl<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.sourcefn mul(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn mul(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
* operation. Read moresourceimpl<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>
sourcefn mul_assign(&mut self, other: F)
fn mul_assign(&mut self, other: F)
Performs the
*= operation. Read moresourceimpl<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>
sourcefn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moresourceimpl<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>
sourceimpl<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>
type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
- operator.sourceimpl<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
sourcefn 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 moresourceimpl<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>
sourceimpl<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>
sourcefn eq(&self, other: &HyperDualVec<T, F, M, N>) -> bool
fn eq(&self, other: &HyperDualVec<T, F, M, N>) -> bool
sourceimpl<'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>
sourcefn 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. Read moresourceimpl<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>
sourceimpl<'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.sourcefn 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 moresourceimpl<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.sourcefn rem(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
fn rem(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
% operation. Read moresourceimpl<T, F: Float, const M: usize, const N: usize> Rem<F> for HyperDualVec<T, F, M, N>
impl<T, F: Float, const M: usize, const N: usize> Rem<F> 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.sourceimpl<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.sourcefn rem(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn rem(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
% operation. Read moresourceimpl<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.sourcefn rem(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn rem(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
% operation. Read moresourceimpl<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>
sourcefn rem_assign(&mut self, _other: F)
fn rem_assign(&mut self, _other: F)
Performs the
%= operation. Read moresourceimpl<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>
sourcefn rem_assign(&mut self, _other: Self)
fn rem_assign(&mut self, _other: Self)
Performs the
%= operation. Read moresourceimpl<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>
sourcefn 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.
sourcefn 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.
sourceimpl<'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.sourcefn 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 moresourceimpl<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.sourcefn sub(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
fn sub(self, rhs: &HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
- operation. Read moresourceimpl<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>
type Output = HyperDualVec<T, F, M, N>
type Output = HyperDualVec<T, F, M, N>
The resulting type after applying the
- operator.sourceimpl<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.sourcefn sub(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn sub(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
- operation. Read moresourceimpl<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.sourcefn sub(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
fn sub(self, rhs: HyperDualVec<T, F, M, N>) -> Self::Output
Performs the
- operation. Read moresourceimpl<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>
sourcefn sub_assign(&mut self, other: F)
fn sub_assign(&mut self, other: F)
Performs the
-= operation. Read moresourceimpl<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>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moresourceimpl<'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>
sourcefn 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. Read moresourceimpl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sum<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Sum<HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
sourceimpl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Zero for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, const M: usize, const N: usize> Zero for HyperDualVec<T, F, M, N>
impl<T: Copy, F: Copy, const M: usize, const N: usize> Copy for HyperDualVec<T, F, M, N>
impl<T: Eq, F: Eq, const M: usize, const N: usize> Eq for HyperDualVec<T, F, M, N>
impl<T, F, const M: usize, const N: usize> StructuralEq for HyperDualVec<T, F, M, N>
impl<T, F, const M: usize, const N: usize> StructuralPartialEq for HyperDualVec<T, F, M, N>
Auto Trait Implementations
impl<T, F, const M: usize, const N: usize> RefUnwindSafe for HyperDualVec<T, F, M, N>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F, const M: usize, const N: usize> Send for HyperDualVec<T, F, M, N>where
F: Send,
T: Send,
impl<T, F, const M: usize, const N: usize> Sync for HyperDualVec<T, F, M, N>where
F: Sync,
T: Sync,
impl<T, F, const M: usize, const N: usize> Unpin for HyperDualVec<T, F, M, N>where
F: Unpin,
T: Unpin,
impl<T, F, const M: usize, const N: usize> UnwindSafe for HyperDualVec<T, F, M, N>where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more