[][src]Trait diffeq::ode::types::OdeType

pub trait OdeType: Clone + Debug {
    type Item: RealField + Add<f64, Output = Self::Item> + Mul<f64, Output = Self::Item>;
    fn dof(&self) -> usize;
fn get(&self, index: usize) -> Self::Item;
fn get_mut(&mut self, index: usize) -> &mut Self::Item;
fn insert(&mut self, index: usize, item: Self::Item); fn set_zero(&mut self) { ... }
fn fill(&mut self, item: Self::Item) { ... }
fn sum(self, other: &Self) -> Self { ... }
fn sum_mut(&mut self, other: &Self) -> &mut Self { ... }
fn ode_iter(&self) -> OdeTypeIterator<Self> { ... }
fn pnorm(&self, p: PNorm) -> Self::Item { ... } }

Associated Types

type Item: RealField + Add<f64, Output = Self::Item> + Mul<f64, Output = Self::Item>

Loading content...

Required methods

fn dof(&self) -> usize

degree of freedom

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

fn get_mut(&mut self, index: usize) -> &mut Self::Item

fn insert(&mut self, index: usize, item: Self::Item)

Loading content...

Provided methods

fn set_zero(&mut self)

fn fill(&mut self, item: Self::Item)

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

fn sum_mut(&mut self, other: &Self) -> &mut Self

Important traits for OdeTypeIterator<'a, T>
fn ode_iter(&self) -> OdeTypeIterator<Self>

fn pnorm(&self, p: PNorm) -> Self::Item

Compute the p-norm of the OdeIterable.

The p-norm is defined as:

  ∥A∥p=(∑i=1n|ai|p)1/p

norm(A, Inf) returns the largest value in abs.(A), whereas norm(A, -Inf) returns the smallest. If A is a matrix and p=2, then this is equivalent to the Frobenius norm.

Loading content...

Implementations on Foreign Types

impl<T, D: Dim> OdeType for VectorN<T, D> where
    T: RealField + Add<f64, Output = T> + Mul<f64, Output = T>,
    DefaultAllocator: Allocator<T, D>, 
[src]

type Item = T

impl<T> OdeType for Vec<T> where
    T: RealField + Add<f64, Output = T> + Mul<f64, Output = T>, 
[src]

type Item = T

impl OdeType for f64[src]

type Item = f64

impl OdeType for (f64, f64)[src]

type Item = f64

impl OdeType for (f64, f64, f64)[src]

type Item = f64

impl OdeType for (f64, f64, f64, f64)[src]

type Item = f64

impl OdeType for (f64, f64, f64, f64, f64)[src]

type Item = f64

impl OdeType for (f64, f64, f64, f64, f64, f64)[src]

type Item = f64

impl OdeType for (f64, f64, f64, f64, f64, f64, f64)[src]

type Item = f64

impl OdeType for (f64, f64, f64, f64, f64, f64, f64, f64)[src]

type Item = f64

impl OdeType for (f64, f64, f64, f64, f64, f64, f64, f64, f64)[src]

type Item = f64

Loading content...

Implementors

Loading content...