Struct num_dual::Dual3 [−][src]
pub struct Dual3<T, F = T> {
pub re: T,
pub v1: T,
pub v2: T,
pub v3: T,
// some fields omitted
}Expand description
A scalar third order dual number for the calculation of third derivatives.
Fields
re: TReal part of the third order dual number
v1: TFirst derivative part of the third order dual number
v2: TSecond derivative part of the third order dual number
v3: TThird derivative part of the third order dual number
Implementations
Trait Implementations
Performs the += operation. Read more
Performs the += operation. Read more
Performs the /= operation. Read more
Performs the /= operation. Read more
Return 1.0 / sqrt(2.0).
Return 2.0 / sqrt(π).
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 more
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 more
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 more
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 more
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 more
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
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 more
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 more
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 more
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 more
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 more
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
Converts a f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Performs the *= operation. Read more
Performs the *= operation. Read more
type FromStrRadixErr = F::FromStrRadixErrConvert from a string and radix (typically 2..=36). Read more
Performs the %= operation. Read more
Performs the %= operation. Read more
Returns true if the number is positive and false if the number is zero or negative.
Returns true if the number is negative and false if the number is zero or positive.
Solves a system of linear equations A * x = b where A is self, b
is the argument, and x is the successful result.
let a = arr2(&[[Dual3_64::new(1.0, 2.0, 3.0, 4.0), Dual3_64::new(2.0, 3.0, 4.0, 5.0)], [Dual3_64::new(3.0, 4.0, 5.0, 6.0), Dual3_64::new(4.0, 5.0, 6.0, 7.0)]]); let b = arr1(&[Dual3_64::new(5.0, 16.0, 48.0, 136.0), Dual3_64::new(11.0, 32.0, 88.0, 232.0)]); let x = a.solve_into(b).unwrap(); assert_abs_diff_eq!(x[0].re, 1.0, epsilon = 1e-14); assert_abs_diff_eq!(x[0].v1, 2.0, epsilon = 1e-14); assert_abs_diff_eq!(x[0].v2, 3.0, epsilon = 1e-14); assert_abs_diff_eq!(x[0].v3, 4.0, epsilon = 1e-14); assert_abs_diff_eq!(x[1].re, 2.0, epsilon = 1e-14); assert_abs_diff_eq!(x[1].v1, 3.0, epsilon = 1e-14); assert_abs_diff_eq!(x[1].v2, 4.0, epsilon = 1e-14); assert_abs_diff_eq!(x[1].v3, 5.0, epsilon = 1e-14);
Solves a system of linear equations A * x = b where A is self, b
is the argument, and x is the successful result. Read more
Solves a system of linear equations A * x = b where A is self, b
is the argument, and x is the successful result. Read more
Solves a system of linear equations A * x = b where A is self, b
is the argument, and x is the successful result. Read more
fn solve_recursive_into(
&self,
lu: &LUFactorized<OwnedRepr<f64>>,
b: Array1<D>
) -> Result<Array1<D>>Performs the -= operation. Read more
Performs the -= operation. Read more
Auto Trait Implementations
impl<T, F> RefUnwindSafe for Dual3<T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe, impl<T, F> UnwindSafe for Dual3<T, F> where
F: UnwindSafe,
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> Vimpl<T> LinalgScalar for T where
T: One<Output = T> + Add<T, Output = T> + Sub<T, Output = T> + 'static + Mul<T> + Copy + Div<T, Output = T> + Zero, impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,