Enum peroxide::structure::ad::AD[][src]

pub enum AD {
    AD0(f64),
    AD1(f64f64),
    AD2(f64f64f64),
}

Variants

AD0(f64)
AD1(f64f64)
AD2(f64f64f64)

Implementations

impl AD[src]

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

pub fn order(&self) -> usize[src]

pub fn len(&self) -> usize[src]

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

Notable traits for ADIter<'a>

impl<'a> Iterator for ADIter<'a> type Item = &'a f64;
[src]

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

Notable traits for ADIterMut<'a>

impl<'a> Iterator for ADIterMut<'a> type Item = &'a mut f64;
[src]

pub fn from_order(n: usize) -> Self[src]

pub fn empty(&self) -> Self[src]

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

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

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

pub fn x(&self) -> f64[src]

pub fn dx(&self) -> f64[src]

pub fn ddx(&self) -> f64[src]

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

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

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

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

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

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

Trait Implementations

impl Add<AD> for AD[src]

type Output = Self

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl Add<f64> for AD[src]

type Output = Self

The resulting type after applying the + operator.

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

Performs the + operation. Read more

impl Clone for AD[src]

fn clone(&self) -> AD[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for AD[src]

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

Formats the value using the given formatter. Read more

impl Display for AD[src]

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

Formats the value using the given formatter. Read more

impl Div<AD> for AD[src]

type Output = Self

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl Div<f64> for AD[src]

type Output = Self

The resulting type after applying the / operator.

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

Performs the / operation. Read more

impl ExpLogOps for AD[src]

fn exp(&self) -> Self[src]

fn ln(&self) -> Self[src]

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

fn log2(&self) -> Self[src]

fn log10(&self) -> Self[src]

impl From<f64> for AD[src]

fn from(other: f64) -> Self[src]

Performs the conversion.

impl<'a> FromIterator<&'a f64> for AD[src]

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

Creates a value from an iterator. Read more

impl FromIterator<f64> for AD[src]

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

Creates a value from an iterator. Read more

impl Index<usize> for AD[src]

type Output = f64

The returned type after indexing.

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

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

impl IndexMut<usize> for AD[src]

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

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

impl IntoIterator for AD[src]

type Item = f64

The type of the elements being iterated over.

type IntoIter = ADIntoIter

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a AD[src]

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?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a mut AD[src]

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?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl Mul<AD> for AD[src]

type Output = Self

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl Mul<f64> for AD[src]

type Output = Self

The resulting type after applying the * operator.

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

Performs the * operation. Read more

impl Neg for AD[src]

type Output = Self

The resulting type after applying the - operator.

fn neg(self) -> Self::Output[src]

Performs the unary - operation. Read more

impl PartialEq<AD> for AD[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &AD) -> bool[src]

This method tests for !=.

impl PartialOrd<AD> for AD[src]

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

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

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

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

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

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

impl PowOps for AD[src]

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

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

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

fn sqrt(&self) -> Self[src]

impl Printable for AD[src]

fn print(&self)[src]

impl Real for AD[src]

fn to_f64(&self) -> f64[src]

fn from_f64(f: f64) -> Self[src]

fn to_ad(&self) -> AD[src]

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

type Output = AD

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

impl Sub<AD> for AD[src]

type Output = Self

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl Sub<f64> for AD[src]

type Output = Self

The resulting type after applying the - operator.

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

Performs the - operation. Read more

impl TrigOps for AD[src]

fn sin_cos(&self) -> (Self, Self)[src]

fn sinh_cosh(&self) -> (Self, Self)[src]

fn asin(&self) -> Self[src]

fn acos(&self) -> Self[src]

fn atan(&self) -> Self[src]

fn asinh(&self) -> Self[src]

fn acosh(&self) -> Self[src]

fn atanh(&self) -> Self[src]

fn sin(&self) -> Self[src]

fn cos(&self) -> Self[src]

fn tan(&self) -> Self[src]

fn sinh(&self) -> Self[src]

fn cosh(&self) -> Self[src]

fn tanh(&self) -> Self[src]

fn asin_acos(&self) -> (Self, Self)[src]

fn asinh_acosh(&self) -> (Self, Self)[src]

impl Copy for AD[src]

impl StructuralPartialEq for AD[src]

Auto Trait Implementations

impl RefUnwindSafe for AD

impl Send for AD

impl Sync for AD

impl Unpin for AD

impl UnwindSafe for AD

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V