Enum peroxide::structure::ad::AD

source ·
pub enum AD {
    AD0(f64),
    AD1(f64, f64),
    AD2(f64, f64, f64),
}

Variants§

§

AD0(f64)

§

AD1(f64, f64)

§

AD2(f64, f64, f64)

Implementations§

source§

impl AD

source

pub fn to_order(&self, n: usize) -> Self

source

pub fn order(&self) -> usize

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn iter(&self) -> ADIter<'_>

source

pub fn iter_mut(&mut self) -> ADIterMut<'_>

source

pub fn from_order(n: usize) -> Self

source

pub fn empty(&self) -> Self

source

pub fn set_x(&mut self, x: f64)

source

pub fn set_dx(&mut self, dx: f64)

source

pub fn set_ddx(&mut self, ddx: f64)

source

pub fn x(&self) -> f64

source

pub fn dx(&self) -> f64

source

pub fn ddx(&self) -> f64

source

pub fn x_ref(&self) -> Option<&f64>

source

pub fn dx_ref(&self) -> Option<&f64>

source

pub fn ddx_ref(&self) -> Option<&f64>

source

pub fn x_mut(&mut self) -> Option<&mut f64>

source

pub fn dx_mut(&mut self) -> Option<&mut f64>

source

pub fn ddx_mut(&mut self) -> Option<&mut f64>

Trait Implementations§

source§

impl Add<AD> for f64

§

type Output = AD

The resulting type after applying the + operator.
source§

fn add(self, rhs: AD) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f64> for AD

§

type Output = AD

The resulting type after applying the + operator.
source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
source§

impl Add for AD

§

type Output = AD

The resulting type after applying the + operator.
source§

fn add(self, rhs: AD) -> Self::Output

Performs the + operation. Read more
source§

impl Clone for AD

source§

fn clone(&self) -> AD

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 Debug for AD

source§

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

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

impl Display for AD

source§

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

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

impl Div<AD> for f64

§

type Output = AD

The resulting type after applying the / operator.
source§

fn div(self, rhs: AD) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f64> for AD

§

type Output = AD

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
source§

impl Div for AD

§

type Output = AD

The resulting type after applying the / operator.
source§

fn div(self, rhs: AD) -> Self::Output

Performs the / operation. Read more
source§

impl ExpLogOps for AD

§

type Float = f64

source§

fn exp(&self) -> Self

source§

fn ln(&self) -> Self

source§

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

source§

fn log2(&self) -> Self

source§

fn log10(&self) -> Self

source§

impl From<AD> for f64

source§

fn from(other: AD) -> Self

Converts to this type from the input type.
source§

impl From<f64> for AD

source§

fn from(other: f64) -> Self

Converts to this type from the input type.
source§

impl<'a> FromIterator<&'a f64> for AD

source§

fn from_iter<T: IntoIterator<Item = &'a f64>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl FromIterator<f64> for AD

source§

fn from_iter<T: IntoIterator<Item = f64>>(iter: T) -> Self

Creates a value from an iterator. Read more
source§

impl Index<usize> for AD

§

type Output = f64

The returned type after indexing.
source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<usize> for AD

source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<'a> IntoIterator for &'a AD

§

type Item = &'a f64

The type of the elements being iterated over.
§

type IntoIter = ADIter<'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a> IntoIterator for &'a mut AD

§

type Item = &'a mut f64

The type of the elements being iterated over.
§

type IntoIter = ADIterMut<'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl IntoIterator for AD

§

type Item = f64

The type of the elements being iterated over.
§

type IntoIter = ADIntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl Mul<AD> for f64

§

type Output = AD

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AD) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f64> for AD

§

type Output = AD

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for AD

§

type Output = AD

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AD) -> Self::Output

Performs the * operation. Read more
source§

impl Neg for AD

§

type Output = AD

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl PartialEq for AD

source§

fn eq(&self, other: &AD) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for AD

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PowOps for AD

§

type Float = f64

source§

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

source§

fn powf(&self, f: f64) -> Self

source§

fn pow(&self, y: Self) -> Self

source§

fn sqrt(&self) -> Self

source§

impl Printable for AD

source§

fn print(&self)

source§

impl Real for AD

source§

fn to_f64(&self) -> f64

source§

fn from_f64(f: f64) -> Self

source§

fn to_ad(&self) -> AD

source§

impl<F: Fn(AD) -> AD> StableFn<AD> for ADFn<F>

§

type Output = AD

source§

fn call_stable(&self, target: AD) -> Self::Output

source§

impl Sub<AD> for f64

§

type Output = AD

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AD) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f64> for AD

§

type Output = AD

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for AD

§

type Output = AD

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AD) -> Self::Output

Performs the - operation. Read more
source§

impl TrigOps for AD

source§

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

source§

fn tan(&self) -> Self

source§

fn sinh(&self) -> Self

source§

fn cosh(&self) -> Self

source§

fn tanh(&self) -> Self

source§

fn asin(&self) -> Self

source§

fn acos(&self) -> Self

source§

fn atan(&self) -> Self

source§

fn asinh(&self) -> Self

source§

fn acosh(&self) -> Self

source§

fn atanh(&self) -> Self

source§

fn sin(&self) -> Self

source§

fn cos(&self) -> Self

source§

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

source§

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

source§

impl Copy for AD

source§

impl StructuralPartialEq for AD

Auto Trait Implementations§

§

impl Freeze for AD

§

impl RefUnwindSafe for AD

§

impl Send for AD

§

impl Sync for AD

§

impl Unpin for AD

§

impl UnwindSafe for AD

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> 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> 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> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V