pub struct VecPcwFn<X, F> { /* private fields */ }
Expand description
A piecewise function internally backed by Vec
s
Trait Implementations§
source§impl<Rhs, X, F> Add<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: Add<F> + Clone,
impl<Rhs, X, F> Add<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: Add<F> + Clone,
source§impl<Rhs, X, F> BitAnd<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: BitAnd<F> + Clone,
impl<Rhs, X, F> BitAnd<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: BitAnd<F> + Clone,
source§impl<Rhs, X, F> BitOr<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: BitOr<F> + Clone,
impl<Rhs, X, F> BitOr<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: BitOr<F> + Clone,
source§impl<Rhs, X, F> BitXor<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: BitXor<F> + Clone,
impl<Rhs, X, F> BitXor<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: BitXor<F> + Clone,
source§impl<Rhs, X, F> Div<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: Div<F> + Clone,
impl<Rhs, X, F> Div<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: Div<F> + Clone,
source§impl<X, F> Functor<F> for VecPcwFn<X, F>
impl<X, F> Functor<F> for VecPcwFn<X, F>
fn fmap<S>(self, f: impl FnMut(F) -> S) -> Self::Constructor<S>
source§impl<X, F> FunctorRef<F> for VecPcwFn<X, F>where
X: Clone,
impl<X, F> FunctorRef<F> for VecPcwFn<X, F>where
X: Clone,
source§impl<Rhs, X, F> Mul<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: Mul<F> + Clone,
impl<Rhs, X, F> Mul<Rhs> for VecPcwFn<X, F>where
X: PartialOrd,
Rhs: PcwFn<X, F>,
F: Mul<F> + Clone,
source§impl<X, F> One for VecPcwFn<X, F>where
X: PartialOrd,
F: One + Clone + PartialEq,
impl<X, F> One for VecPcwFn<X, F>where
X: PartialOrd,
F: One + Clone + PartialEq,
source§impl<X: PartialEq, F: PartialEq> PartialEq<VecPcwFn<X, F>> for VecPcwFn<X, F>
impl<X: PartialEq, F: PartialEq> PartialEq<VecPcwFn<X, F>> for VecPcwFn<X, F>
source§impl<X: PartialOrd, F> PcwFn<X, F> for VecPcwFn<X, F>
impl<X: PartialOrd, F> PcwFn<X, F> for VecPcwFn<X, F>
type JmpIter = <Vec<X, Global> as IntoIterator>::IntoIter
type FncIter = <Vec<F, Global> as IntoIterator>::IntoIter
source§fn try_from_iters<Jmp: IntoIterator<Item = X>, Fnc: IntoIterator<Item = F>>(
jumps: Jmp,
funcs: Fnc
) -> Result<Self, PcwFnError>
fn try_from_iters<Jmp: IntoIterator<Item = X>, Fnc: IntoIterator<Item = F>>(
jumps: Jmp,
funcs: Fnc
) -> Result<Self, PcwFnError>
Try constructing a new piecewise function from iterators over jumps and functions.
source§fn add_segment(&mut self, jump: X, func: F)
fn add_segment(&mut self, jump: X, func: F)
Add another segment to the piecewise function at the back.
source§fn into_jumps_and_funcs(self) -> (Self::JmpIter, Self::FncIter)
fn into_jumps_and_funcs(self) -> (Self::JmpIter, Self::FncIter)
Deconstruct a piecewise function into sequences of functions and jumps.
source§fn into_jumps(self) -> Self::JmpIter
fn into_jumps(self) -> Self::JmpIter
Turn the function into an owned iterator over the jumps.
source§fn into_funcs(self) -> Self::FncIter
fn into_funcs(self) -> Self::FncIter
Turn the function into an owned iterator over the functions.
source§fn segment_count(&self) -> usize
fn segment_count(&self) -> usize
How many segments the function consists of.
source§fn func_at(&self, x: &X) -> &F
fn func_at(&self, x: &X) -> &F
Find the function that locally defines the piecewise function at some point
x
of
the domain.source§fn func_at_mut(&mut self, x: &X) -> &mut F
fn func_at_mut(&mut self, x: &X) -> &mut F
Find the function that locally defines the piecewise function at some point
x
of
the domain.