num_dual

Struct Dual2Vec

Source
pub struct Dual2Vec<T: DualNum<F>, F, D: Dim>{
    pub re: T,
    pub v1: Derivative<T, F, U1, D>,
    pub v2: Derivative<T, F, D, D>,
    /* private fields */
}
Expand description

A vector second order dual number for the calculation of Hessians.

Fields§

§re: T

Real part of the second order dual number

§v1: Derivative<T, F, U1, D>

Gradient part of the second order dual number

§v2: Derivative<T, F, D, D>

Hessian part of the second order dual number

Implementations§

Source§

impl<T: DualNum<F>, F, D: Dim> Dual2Vec<T, F, D>

Source

pub fn new( re: T, v1: Derivative<T, F, U1, D>, v2: Derivative<T, F, D, D>, ) -> Self

Create a new second order dual number from its fields.

Source§

impl<T: DualNum<F>, F, D: Dim> Dual2Vec<T, F, D>

Source

pub fn from_re(re: T) -> Self

Create a new second order dual number from the real part.

Trait Implementations§

Source§

impl<'a, 'b, T: DualNum<F>, F: Float, D: Dim> Add<&'a Dual2Vec<T, F, D>> for &'b Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &Dual2Vec<T, F, D>) -> Dual2Vec<T, F, D>

Performs the + operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Add<&Dual2Vec<T, F, D>> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Dual2Vec<T, F, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Add<Dual2Vec<T, F, D>> for &Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> Add<F> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the + operator.
Source§

fn add(self, other: F) -> Self

Performs the + operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Add for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> AddAssign<F> for Dual2Vec<T, F, D>

Source§

fn add_assign(&mut self, other: F)

Performs the += operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> AddAssign for Dual2Vec<T, F, D>

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl<T: Clone + DualNum<F>, F: Clone, D: Clone + Dim> Clone for Dual2Vec<T, F, D>

Source§

fn clone(&self) -> Dual2Vec<T, F, D>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + DualNum<F>, F: Debug, D: Debug + Dim> Debug for Dual2Vec<T, F, D>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: DualNum<F>, F: Display, D: Dim> Display for Dual2Vec<T, F, D>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b, T: DualNum<F>, F: Float, D: Dim> Div<&'a Dual2Vec<T, F, D>> for &'b Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the / operator.
Source§

fn div(self, other: &Dual2Vec<T, F, D>) -> Dual2Vec<T, F, D>

Performs the / operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Div<&Dual2Vec<T, F, D>> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Dual2Vec<T, F, D>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Div<Dual2Vec<T, F, D>> for &Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: DualNum<F>, F: DualNumFloat, D: Dim> Div<F> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the / operator.
Source§

fn div(self, other: F) -> Self

Performs the / operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Div for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: DualNum<F>, F: DualNumFloat, D: Dim> DivAssign<F> for Dual2Vec<T, F, D>

Source§

fn div_assign(&mut self, other: F)

Performs the /= operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> DivAssign for Dual2Vec<T, F, D>

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl<T: DualNum<F>, F: DualNumFloat, D: Dim> DualNum<F> for Dual2Vec<T, F, D>

Source§

const NDERIV: usize = _

Highest derivative that can be calculated with this struct
Source§

type Inner = T

Type of the elements of this generalized (hyper) dual number
Source§

fn from_inner(inner: Self::Inner) -> Self

Construct a new generalized (hyper) dual number from its real part
Source§

fn re(&self) -> F

Real part (0th derivative) of the number
Source§

fn recip(&self) -> Self

Reciprocal (inverse) of a number 1/x
Source§

fn powi(&self, exp: i32) -> Self

Power with integer exponent x^n
Source§

fn powf(&self, n: F) -> Self

Power with real exponent x^n
Source§

fn sqrt(&self) -> Self

Square root
Source§

fn cbrt(&self) -> Self

Cubic root
Source§

fn exp(&self) -> Self

Exponential e^x
Source§

fn exp2(&self) -> Self

Exponential with base 2 2^x
Source§

fn exp_m1(&self) -> Self

Exponential minus 1 e^x-1
Source§

fn ln(&self) -> Self

Natural logarithm
Source§

fn log(&self, base: F) -> Self

Logarithm with arbitrary base
Source§

fn log2(&self) -> Self

Logarithm with base 2
Source§

fn log10(&self) -> Self

Logarithm with base 10
Source§

fn ln_1p(&self) -> Self

Logarithm on x plus one ln(1+x)
Source§

fn sin(&self) -> Self

Sine
Source§

fn cos(&self) -> Self

Cosine
Source§

fn sin_cos(&self) -> (Self, Self)

Calculate sine and cosine simultaneously
Source§

fn tan(&self) -> Self

Tangent
Source§

fn asin(&self) -> Self

Arcsine
Source§

fn acos(&self) -> Self

Arccosine
Source§

fn atan(&self) -> Self

Arctangent
Source§

fn sinh(&self) -> Self

Hyperbolic sine
Source§

fn cosh(&self) -> Self

Hyperbolic cosine
Source§

fn tanh(&self) -> Self

Hyperbolic tangent
Source§

fn asinh(&self) -> Self

Area hyperbolic sine
Source§

fn acosh(&self) -> Self

Area hyperbolic cosine
Source§

fn atanh(&self) -> Self

Area hyperbolic tangent
Source§

fn sph_j0(&self) -> Self

0th order spherical Bessel function of the first kind
Source§

fn sph_j1(&self) -> Self

1st order spherical Bessel function of the first kind
Source§

fn sph_j2(&self) -> Self

2nd order spherical Bessel function of the first kind
Source§

fn mul_add(&self, a: Self, b: Self) -> Self

Fused multiply-add
Source§

fn powd(&self, exp: Self) -> Self

Power with dual exponent x^n
Source§

impl<T: DualNum<F>, F: Float + FloatConst, D: Dim> FloatConst for Dual2Vec<T, F, D>

Source§

fn E() -> Self

Return Euler’s number.
Source§

fn FRAC_1_PI() -> Self

Return 1.0 / π.
Source§

fn FRAC_1_SQRT_2() -> Self

Return 1.0 / sqrt(2.0).
Source§

fn FRAC_2_PI() -> Self

Return 2.0 / π.
Source§

fn FRAC_2_SQRT_PI() -> Self

Return 2.0 / sqrt(π).
Source§

fn FRAC_PI_2() -> Self

Return π / 2.0.
Source§

fn FRAC_PI_3() -> Self

Return π / 3.0.
Source§

fn FRAC_PI_4() -> Self

Return π / 4.0.
Source§

fn FRAC_PI_6() -> Self

Return π / 6.0.
Source§

fn FRAC_PI_8() -> Self

Return π / 8.0.
Source§

fn LN_10() -> Self

Return ln(10.0).
Source§

fn LN_2() -> Self

Return ln(2.0).
Source§

fn LOG10_E() -> Self

Return log10(e).
Source§

fn LOG2_E() -> Self

Return log2(e).
Source§

fn PI() -> Self

Return Archimedes’ constant π.
Source§

fn SQRT_2() -> Self

Return sqrt(2.0).
Source§

fn TAU() -> Self
where Self: Sized + Add<Output = Self>,

Return the full circle constant τ.
Source§

fn LOG10_2() -> Self
where Self: Sized + Div<Output = Self>,

Return log10(2.0).
Source§

fn LOG2_10() -> Self
where Self: Sized + Div<Output = Self>,

Return log2(10.0).
Source§

impl<T: DualNum<F>, F, D: Dim> From<F> for Dual2Vec<T, F, D>

Source§

fn from(float: F) -> Self

Converts to this type from the input type.
Source§

impl<T: DualNum<F>, F: Float + FromPrimitive, D: Dim> FromPrimitive for Dual2Vec<T, F, D>

Source§

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>

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>

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>

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>

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>

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 more
Source§

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>

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>

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>

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>

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>

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 more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl<T: DualNum<F>, F: DualNumFloat, D: Dim> Inv for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The result after applying the operator.
Source§

fn inv(self) -> Self

Returns the multiplicative inverse of self. Read more
Source§

impl<'a, 'b, T: DualNum<F>, F: Float, D: Dim> Mul<&'a Dual2Vec<T, F, D>> for &'b Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Dual2Vec<T, F, D>) -> Dual2Vec<T, F, D>

Performs the * operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Mul<&Dual2Vec<T, F, D>> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Dual2Vec<T, F, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Mul<Dual2Vec<T, F, D>> for &Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: DualNum<F>, F: DualNumFloat, D: Dim> Mul<F> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: F) -> Self

Performs the * operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Mul for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: DualNum<F>, F: DualNumFloat, D: Dim> MulAssign<F> for Dual2Vec<T, F, D>

Source§

fn mul_assign(&mut self, other: F)

Performs the *= operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> MulAssign for Dual2Vec<T, F, D>

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Neg for &Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Neg for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<T: DualNum<F> + Signed, F: Float, D: Dim> Num for Dual2Vec<T, F, D>

Source§

type FromStrRadixErr = <F as Num>::FromStrRadixErr

Source§

fn from_str_radix( _str: &str, _radix: u32, ) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> One for Dual2Vec<T, F, D>

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl<T: PartialEq + DualNum<F>, F: PartialEq, D: PartialEq + Dim> PartialEq for Dual2Vec<T, F, D>

Source§

fn eq(&self, other: &Dual2Vec<T, F, D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, T: DualNum<F>, F: Float, D: Dim> Product<&'a Dual2Vec<T, F, D>> for Dual2Vec<T, F, D>

Source§

fn product<I>(iter: I) -> Self
where I: Iterator<Item = &'a Dual2Vec<T, F, D>>,

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Product for Dual2Vec<T, F, D>

Source§

fn product<I>(iter: I) -> Self
where I: Iterator<Item = Self>,

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<'a, 'b, T: DualNum<F>, F, D: Dim> Rem<&'a Dual2Vec<T, F, D>> for &'b Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the % operator.
Source§

fn rem(self, _other: &Dual2Vec<T, F, D>) -> Dual2Vec<T, F, D>

Performs the % operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Rem<&Dual2Vec<T, F, D>> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Dual2Vec<T, F, D>) -> Self::Output

Performs the % operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Rem<Dual2Vec<T, F, D>> for &Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the % operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> Rem<F> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the % operator.
Source§

fn rem(self, _other: F) -> Self

Performs the % operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Rem for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the % operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> RemAssign<F> for Dual2Vec<T, F, D>

Source§

fn rem_assign(&mut self, _other: F)

Performs the %= operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> RemAssign for Dual2Vec<T, F, D>

Source§

fn rem_assign(&mut self, _other: Self)

Performs the %= operation. Read more
Source§

impl<T: DualNum<F>, F: DualNumFloat, D: Dim> Signed for Dual2Vec<T, F, D>

Source§

fn abs(&self) -> Self

Computes the absolute value. Read more
Source§

fn abs_sub(&self, other: &Self) -> Self

The positive difference of two numbers. Read more
Source§

fn signum(&self) -> Self

Returns the sign of the number. Read more
Source§

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

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, D: Dim> Sub<&'a Dual2Vec<T, F, D>> for &'b Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Dual2Vec<T, F, D>) -> Dual2Vec<T, F, D>

Performs the - operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Sub<&Dual2Vec<T, F, D>> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Dual2Vec<T, F, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Sub<Dual2Vec<T, F, D>> for &Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> Sub<F> for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: F) -> Self

Performs the - operation. Read more
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Sub for Dual2Vec<T, F, D>

Source§

type Output = Dual2Vec<T, F, D>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Dual2Vec<T, F, D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> SubAssign<F> for Dual2Vec<T, F, D>

Source§

fn sub_assign(&mut self, other: F)

Performs the -= operation. Read more
Source§

impl<T: DualNum<F>, F, D: Dim> SubAssign for Dual2Vec<T, F, D>

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl<'a, T: DualNum<F>, F: Float, D: Dim> Sum<&'a Dual2Vec<T, F, D>> for Dual2Vec<T, F, D>

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = &'a Dual2Vec<T, F, D>>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Sum for Dual2Vec<T, F, D>

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = Self>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<T: DualNum<F>, F: Float, D: Dim> Zero for Dual2Vec<T, F, D>

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl<T: DualNum<F> + Copy, F: Copy, const N: usize> Copy for Dual2Vec<T, F, Const<N>>

Source§

impl<T: Eq + DualNum<F>, F: Eq, D: Eq + Dim> Eq for Dual2Vec<T, F, D>

Source§

impl<T: DualNum<F>, F, D: Dim> StructuralPartialEq for Dual2Vec<T, F, D>

Auto Trait Implementations§

§

impl<T, F, D> !Freeze for Dual2Vec<T, F, D>

§

impl<T, F, D> !RefUnwindSafe for Dual2Vec<T, F, D>

§

impl<T, F, D> !Send for Dual2Vec<T, F, D>

§

impl<T, F, D> !Sync for Dual2Vec<T, F, D>

§

impl<T, F, D> !Unpin for Dual2Vec<T, F, D>

§

impl<T, F, D> !UnwindSafe for Dual2Vec<T, F, D>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> BesselDual for T
where T: DualNum<f64> + Copy,

Source§

fn bessel_j0(self) -> Self

0th order bessel function of the first kind
Source§

fn bessel_j1(self) -> Self

1st order bessel function of the first kind
Source§

fn bessel_j2(self) -> Self

2nd order bessel function of the first kind
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, Right> ClosedAdd<Right> for T
where T: Add<Right, Output = T> + AddAssign<Right>,

Source§

impl<T, Right> ClosedAddAssign<Right> for T
where T: ClosedAdd<Right> + AddAssign<Right>,

Source§

impl<T, Right> ClosedDiv<Right> for T
where T: Div<Right, Output = T> + DivAssign<Right>,

Source§

impl<T, Right> ClosedDivAssign<Right> for T
where T: ClosedDiv<Right> + DivAssign<Right>,

Source§

impl<T, Right> ClosedMul<Right> for T
where T: Mul<Right, Output = T> + MulAssign<Right>,

Source§

impl<T, Right> ClosedMulAssign<Right> for T
where T: ClosedMul<Right> + MulAssign<Right>,

Source§

impl<T> ClosedNeg for T
where T: Neg<Output = T>,

Source§

impl<T, Right> ClosedSub<Right> for T
where T: Sub<Right, Output = T> + SubAssign<Right>,

Source§

impl<T, Right> ClosedSubAssign<Right> for T
where T: ClosedSub<Right> + SubAssign<Right>,

Source§

impl<T> NumAssign for T
where T: Num + NumAssignOps,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T> NumRef for T
where T: Num + for<'r> NumOps<&'r T>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,