Skip to main content

FunctionSequence

Struct FunctionSequence 

Source
pub struct FunctionSequence { /* private fields */ }
Expand description

A sequence of functions represented as closures.

Implementations§

Source§

impl FunctionSequence

Source

pub fn new(functions: Vec<Box<dyn Fn(&[f64]) -> f64 + Send + Sync>>) -> Self

Construct from a vector of boxed functions.

Source

pub fn len(&self) -> usize

Length of the sequence.

Source

pub fn is_empty(&self) -> bool

Is the sequence empty?

Source

pub fn eval(&self, n: usize, x: &[f64]) -> f64

Evaluate f_n at x.

Source

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

Source

pub fn epi_limsup(&self, x: &[f64], radius: f64, grid_steps: usize) -> f64

Compute epi-limsup at x.

Source

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§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.