Skip to main content

ForrestTomlin

Struct ForrestTomlin 

Source
pub struct ForrestTomlin<T: Real> { /* private fields */ }
Expand description

Forrest & Tomlin (1972): row etas and a permuted, modified U (Algorithm U).

Trait Implementations§

Source§

impl<T: Real> BasisUpdate<T> for ForrestTomlin<T>

Source§

fn update( &mut self, f: &mut Factors<T>, opts: &LuOptions, r: usize, alpha_r: T, ) -> Result<UpdateOutcome, LuError>

Algorithm U. Errors: LuError::Singular if the new basis is singular, LuError::NoSpike without a recorded spike, LuError::NotFactorized on an invalid factor, LuError::Structure if r ≥ m. On every error, and on RefactorReason::Unstable, the factor is left unchanged.

Source§

fn apply_ftran(&self, y: &mut [T])

Step F2.

Source§

fn apply_btran(&self, w: &mut [T])

Step B2.

Source§

fn apply_ftran_hyper( &self, y: &mut [T], list: &mut Vec<u32>, mark: &mut [u32], stamp: u32, queued: &mut [bool], )

Step HF4: the row etas in creation order through a min-queue.

Source§

fn apply_btran_hyper( &self, w: &mut [T], list: &mut Vec<u32>, mark: &mut [u32], stamp: u32, queued: &mut [bool], )

Step HB4: the row etas in reverse creation order through a max-queue.

Source§

fn reset(&mut self, m: usize, update_growth: f64)

Forgets every update: called after each factorization of an m × m basis, with the update growth of the fresh factors (0 after a failed factorization).
Source§

fn stats(&self) -> &UpdateStats

The counters since the last factorization.
Source§

fn name(&self) -> &'static str

A short name for logs ("forrest-tomlin").
Source§

impl<T: Clone + Real> Clone for ForrestTomlin<T>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + Real> Debug for ForrestTomlin<T>

Source§

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

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

impl<T: Real> Default for ForrestTomlin<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> Forget for ForrestTomlin<T>

§

impl<T> Freeze for ForrestTomlin<T>
where Vec<T>: Freeze,

§

impl<T> RefUnwindSafe for ForrestTomlin<T>
where Vec<T>: RefUnwindSafe,

§

impl<T> Send for ForrestTomlin<T>
where Vec<T>: Send,

§

impl<T> Sync for ForrestTomlin<T>
where Vec<T>: Sync,

§

impl<T> Unpin for ForrestTomlin<T>
where Vec<T>: Unpin,

§

impl<T> UnsafeUnpin for ForrestTomlin<T>
where Vec<T>: UnsafeUnpin,

§

impl<T> UnwindSafe for ForrestTomlin<T>
where Vec<T>: 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> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

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,

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