Struct num_dual::HyperDualVec
source · pub struct HyperDualVec<T: DualNum<F>, F, M: Dim, N: Dim>{
pub re: T,
pub eps1: Derivative<T, F, M, U1>,
pub eps2: Derivative<T, F, U1, N>,
pub eps1eps2: Derivative<T, F, M, N>,
/* private fields */
}
Expand description
A vector hyper-dual number for the calculation of partial Hessians.
Fields§
§re: T
Real part of the hyper-dual number
eps1: Derivative<T, F, M, U1>
Gradient part of the hyper-dual number
eps2: Derivative<T, F, U1, N>
Gradient part of the hyper-dual number
eps1eps2: Derivative<T, F, M, N>
Partial Hessian part of the hyper-dual number
Implementations§
source§impl<T: DualNum<F>, F, M: Dim, N: Dim> HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> HyperDualVec<T, F, M, N>
sourcepub fn new(
re: T,
eps1: Derivative<T, F, M, U1>,
eps2: Derivative<T, F, U1, N>,
eps1eps2: Derivative<T, F, M, N>
) -> Self
pub fn new( re: T, eps1: Derivative<T, F, M, U1>, eps2: Derivative<T, F, U1, N>, eps1eps2: Derivative<T, F, M, N> ) -> Self
Create a new hyper-dual number from its fields.
Trait Implementations§
source§impl<'a, 'b, T: DualNum<F>, F: Float, M: Dim, N: Dim> Add<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Add<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Add<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Add for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> Add 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, M: Dim, N: Dim> AddAssign<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> 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: DualNum<F>, F, M: Dim, N: Dim> AddAssign for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> AddAssign 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 + DualNum<F>, F: Clone, M: Clone + Dim, N: Clone + Dim> Clone for HyperDualVec<T, F, M, N>
impl<T: Clone + DualNum<F>, F: Clone, M: Clone + Dim, N: Clone + Dim> 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: Debug + DualNum<F>, F: Debug, M: Debug + Dim, N: Debug + Dim> Debug for HyperDualVec<T, F, M, N>
impl<T: Debug + DualNum<F>, F: Debug, M: Debug + Dim, N: Debug + Dim> Debug for HyperDualVec<T, F, M, N>
source§impl<'a, 'b, T: DualNum<F>, F: Float, M: Dim, N: Dim> Div<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Div<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Div<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, M: Dim, N: Dim> Div<F> for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> Div<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Div for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> Div 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, M: Dim, N: Dim> DivAssign<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, M: Dim, N: Dim> 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, M: Dim, N: Dim> DivAssign for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> DivAssign 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, M: Dim, N: Dim> DualNum<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, M: Dim, N: Dim> 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, M: Dim, N: Dim> FloatConst for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float + FloatConst, M: Dim, N: Dim> FloatConst for HyperDualVec<T, F, M, N>
source§fn FRAC_1_SQRT_2() -> Self
fn FRAC_1_SQRT_2() -> Self
Return
1.0 / sqrt(2.0)
.source§fn FRAC_2_SQRT_PI() -> Self
fn FRAC_2_SQRT_PI() -> Self
Return
2.0 / sqrt(π)
.source§impl<T: DualNum<F>, F: Float + FromPrimitive, M: Dim, N: Dim> FromPrimitive for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float + FromPrimitive, M: Dim, N: Dim> 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, M: Dim, N: Dim> Inv for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, M: Dim, N: Dim> Inv for HyperDualVec<T, F, M, N>
source§impl<'a, 'b, T: DualNum<F>, F: Float, M: Dim, N: Dim> Mul<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Mul<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Mul<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, M: Dim, N: Dim> Mul<F> for HyperDualVec<T, F, M, N>
source§impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> Mul<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Mul for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> Mul 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, M: Dim, N: Dim> MulAssign<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, M: Dim, N: Dim> 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, M: Dim, N: Dim> MulAssign for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> MulAssign 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: DualNum<F> + Signed, F: Float, M: Dim, N: Dim> Num for HyperDualVec<T, F, M, N>
impl<T: DualNum<F> + Signed, F: Float, M: Dim, N: Dim> 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: PartialEq + DualNum<F>, F: PartialEq, M: PartialEq + Dim, N: PartialEq + Dim> PartialEq for HyperDualVec<T, F, M, N>
impl<T: PartialEq + DualNum<F>, F: PartialEq, M: PartialEq + Dim, N: PartialEq + Dim> PartialEq 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, M: Dim, N: Dim> Product<&'a HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<'a, T: DualNum<F>, F: Float, M: Dim, N: Dim> 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<'a, 'b, T: DualNum<F>, F, M: Dim, N: Dim> Rem<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F, M: Dim, N: Dim> 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, M: Dim, N: Dim> Rem<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Rem<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Rem for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> Rem 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, M: Dim, N: Dim> RemAssign<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> 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: DualNum<F>, F, M: Dim, N: Dim> RemAssign for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> RemAssign 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, M: Dim, N: Dim> Signed for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: DualNumFloat, M: Dim, N: Dim> 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, M: Dim, N: Dim> Sub<&'a HyperDualVec<T, F, M, N>> for &'b HyperDualVec<T, F, M, N>
impl<'a, 'b, T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Sub<&HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Sub<HyperDualVec<T, F, M, N>> for &HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> 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, M: Dim, N: Dim> Sub for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F: Float, M: Dim, N: Dim> Sub 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, M: Dim, N: Dim> SubAssign<F> for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> 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: DualNum<F>, F, M: Dim, N: Dim> SubAssign for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> SubAssign 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, M: Dim, N: Dim> Sum<&'a HyperDualVec<T, F, M, N>> for HyperDualVec<T, F, M, N>
impl<'a, T: DualNum<F>, F: Float, M: Dim, N: Dim> 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.impl<T: DualNum<F> + Copy, F: Copy, const M: usize, const N: usize> Copy for HyperDualVec<T, F, Const<M>, Const<N>>
impl<T: Eq + DualNum<F>, F: Eq, M: Eq + Dim, N: Eq + Dim> Eq for HyperDualVec<T, F, M, N>
impl<T: DualNum<F>, F, M: Dim, N: Dim> StructuralPartialEq for HyperDualVec<T, F, M, N>
Auto Trait Implementations§
impl<T, F, M, N> !Freeze for HyperDualVec<T, F, M, N>
impl<T, F, M, N> !RefUnwindSafe for HyperDualVec<T, F, M, N>
impl<T, F, M, N> !Send for HyperDualVec<T, F, M, N>
impl<T, F, M, N> !Sync for HyperDualVec<T, F, M, N>
impl<T, F, M, N> !Unpin for HyperDualVec<T, F, M, N>
impl<T, F, M, N> !UnwindSafe for HyperDualVec<T, F, M, N>
Blanket Implementations§
source§impl<T> BesselDual for T
impl<T> BesselDual for T
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
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.