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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

type Item = &'a f64

The type of the elements being iterated over.
source§

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

source§

type Item = &'a mut f64

The type of the elements being iterated over.
source§

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

source§

type Item = f64

The type of the elements being iterated over.
source§

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

source§

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

source§

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

source§

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

source§

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

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

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

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

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

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

impl PowOps for AD

source§

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>

source§

type Output = AD

source§

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

source§

impl Sub<AD> for f64

source§

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

source§

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

source§

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

§

fn sin(&self) -> Self

§

fn cos(&self) -> Self

§

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

§

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

source§

fn __clone_box(&self, _: Private) -> *mut ()

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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.
§

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

§

fn vzip(self) -> V

§

impl<T> Ungil for T
where T: Send,