pub struct FBSCache { /* private fields */ }
Expand description

Cache for the forward-backward splitting (FBS), or projected gradient, algorithm

This struct allocates memory needed for the FBS algorithm

Implementations

Construct a new instance of FBSCache

Arguments
  • gamma parameter gamma of the algorithm
  • tolerance tolerance used for termination
Memory allocation

This method allocates new memory (which it owns, of course). You should avoid constructing instances of FBSCache in a loop or in any way more than absolutely necessary

If you need to call an optimizer more than once, perhaps with different parameters, then construct an FBSCache only once

This method will allocate memory for 2*n + 3 floats

Panics

This method will panic if there is no available memory for the required allocation (capacity overflow)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.