pub struct FunctionSequence { /* private fields */ }Expand description
A sequence of functions represented as closures.
Implementations§
Source§impl FunctionSequence
impl FunctionSequence
Sourcepub fn new(functions: Vec<Box<dyn Fn(&[f64]) -> f64 + Send + Sync>>) -> Self
pub fn new(functions: Vec<Box<dyn Fn(&[f64]) -> f64 + Send + Sync>>) -> Self
Construct from a vector of boxed functions.
Sourcepub fn epi_liminf(&self, x: &[f64], radius: f64, grid_steps: usize) -> f64
pub fn epi_liminf(&self, x: &[f64], radius: f64, grid_steps: usize) -> f64
Compute epi-liminf at x using a discrete grid of perturbation vectors. epi-liminf_n f_n(x) = liminf_{y→x} liminf_n f_n(y).
Sourcepub fn epi_limsup(&self, x: &[f64], radius: f64, grid_steps: usize) -> f64
pub fn epi_limsup(&self, x: &[f64], radius: f64, grid_steps: usize) -> f64
Compute epi-limsup at x.
Sourcepub fn gamma_liminf(&self, x: &[f64], radii: &[f64]) -> f64
pub fn gamma_liminf(&self, x: &[f64], radii: &[f64]) -> f64
Approximate Γ-liminf of the sequence at x. Γ-liminf_n f_n(x) = sup_{U∋x} liminf_n inf_{y∈U} f_n(y).
Auto Trait Implementations§
impl Freeze for FunctionSequence
impl !RefUnwindSafe for FunctionSequence
impl Send for FunctionSequence
impl Sync for FunctionSequence
impl Unpin for FunctionSequence
impl UnsafeUnpin for FunctionSequence
impl !UnwindSafe for FunctionSequence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more