Skip to main content

Work

Struct Work 

Source
pub struct Work<T: Lane, const B: usize> {
    pub kt: usize,
    pub c: Vec<Vec<Fl<T, B>>>,
    pub aux: Vec<Vec<Fl<T, B>>>,
    pub rate: Rate,
}
Expand description

The Taylor coefficients of one step about its start x0 and the equations’ scratch series.

c[f][k] is coefficient k of field f, k = 0..=kt. The engine sets order 0 (the state at x0) before Equations::taylor_coeffs and reads orders 0..=kt after it. aux[i] are NAUX series the recursion may keep (products, right-hand sides), each of the same length; their contents are the equations’.

Fields§

§kt: usize

the Taylor order: coefficients 0..=kt

§c: Vec<Vec<Fl<T, B>>>§aux: Vec<Vec<Fl<T, B>>>§rate: Rate

the growth rate of a mode-matrix evaluation, zero otherwise: the recursion passes each t-derivative of a coefficient through rate.shift (crate::mode)

Implementations§

Source§

impl<T: Lane, const B: usize> Work<T, B>

Source

pub fn new(nf: usize, naux: usize, kt: usize) -> Self

work for nf fields, naux scratch series and order kt; every series has kt + 2 entries, zero

Auto Trait Implementations§

§

impl<T, const B: usize> Forget for Work<T, B>

§

impl<T, const B: usize> Freeze for Work<T, B>
where Vec<Vec<Fl<T, B>>>: Freeze,

§

impl<T, const B: usize> Move for Work<T, B>

§

impl<T, const B: usize> RefUnwindSafe for Work<T, B>
where Vec<Vec<Fl<T, B>>>: RefUnwindSafe,

§

impl<T, const B: usize> Send for Work<T, B>
where Vec<Vec<Fl<T, B>>>: Send,

§

impl<T, const B: usize> Sync for Work<T, B>
where Vec<Vec<Fl<T, B>>>: Sync,

§

impl<T, const B: usize> Unpin for Work<T, B>
where Vec<Vec<Fl<T, B>>>: Unpin,

§

impl<T, const B: usize> UnsafeUnpin for Work<T, B>
where Vec<Vec<Fl<T, B>>>: UnsafeUnpin,

§

impl<T, const B: usize> UnwindSafe for Work<T, B>
where Vec<Vec<Fl<T, B>>>: UnwindSafe,

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

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.