pub struct PiecewiseLegendreFTVector<S>where
S: StatisticsType,{ /* private fields */ }Expand description
Vector of PiecewiseLegendreFT polynomials
Implementations§
Source§impl<S> PiecewiseLegendreFTVector<S>where
S: StatisticsType,
impl<S> PiecewiseLegendreFTVector<S>where
S: StatisticsType,
Sourcepub fn new() -> PiecewiseLegendreFTVector<S>
pub fn new() -> PiecewiseLegendreFTVector<S>
Create an empty vector
Sourcepub fn from_vector(
polyvec: Vec<PiecewiseLegendreFT<S>>,
) -> PiecewiseLegendreFTVector<S>
pub fn from_vector( polyvec: Vec<PiecewiseLegendreFT<S>>, ) -> PiecewiseLegendreFTVector<S>
Create from a vector of PiecewiseLegendreFT
Sourcepub fn from_poly_vector(
polys: &PiecewiseLegendrePolyVector,
_stat: S,
n_asymp: Option<f64>,
) -> Result<PiecewiseLegendreFTVector<S>, Error>
pub fn from_poly_vector( polys: &PiecewiseLegendrePolyVector, _stat: S, n_asymp: Option<f64>, ) -> Result<PiecewiseLegendreFTVector<S>, Error>
Create from PiecewiseLegendrePolyVector and statistics
§Errors
The errors of PiecewiseLegendreFT::new for the first polynomial
that it rejects
Sourcepub fn get_polys(&self) -> &[PiecewiseLegendreFT<S>]
pub fn get_polys(&self) -> &[PiecewiseLegendreFT<S>]
The transformed polynomials, in order
Sourcepub fn get(&self, index: usize) -> Option<&PiecewiseLegendreFT<S>>
pub fn get(&self, index: usize) -> Option<&PiecewiseLegendreFT<S>>
Get element by index (immutable)
Sourcepub fn get_mut(&mut self, index: usize) -> Option<&mut PiecewiseLegendreFT<S>>
pub fn get_mut(&mut self, index: usize) -> Option<&mut PiecewiseLegendreFT<S>>
Get element by index (mutable)
Sourcepub fn set(
&mut self,
index: usize,
poly: PiecewiseLegendreFT<S>,
) -> Result<(), Error>
pub fn set( &mut self, index: usize, poly: PiecewiseLegendreFT<S>, ) -> Result<(), Error>
Set element at index
§Errors
Error::InvalidParameter if index is not less than the length;
the vector is then unchanged
Sourcepub fn similar(&self) -> PiecewiseLegendreFTVector<S>
pub fn similar(&self) -> PiecewiseLegendreFTVector<S>
Create a similar empty vector
Sourcepub fn evaluate_at(&self, omega: &MatsubaraFreq<S>) -> Vec<Complex<f64>>
pub fn evaluate_at(&self, omega: &MatsubaraFreq<S>) -> Vec<Complex<f64>>
Evaluate all polynomials at a Matsubara frequency
Sourcepub fn evaluate_at_many(
&self,
omegas: &[MatsubaraFreq<S>],
) -> Vec<Vec<Complex<f64>>>
pub fn evaluate_at_many( &self, omegas: &[MatsubaraFreq<S>], ) -> Vec<Vec<Complex<f64>>>
Evaluate all polynomials at multiple Matsubara frequencies
Trait Implementations§
Source§impl<S> Clone for PiecewiseLegendreFTVector<S>where
S: Clone + StatisticsType,
impl<S> Clone for PiecewiseLegendreFTVector<S>where
S: Clone + StatisticsType,
Source§fn clone(&self) -> PiecewiseLegendreFTVector<S>
fn clone(&self) -> PiecewiseLegendreFTVector<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for PiecewiseLegendreFTVector<S>where
S: Debug + StatisticsType,
impl<S> Debug for PiecewiseLegendreFTVector<S>where
S: Debug + StatisticsType,
Source§impl<S> Default for PiecewiseLegendreFTVector<S>where
S: StatisticsType,
impl<S> Default for PiecewiseLegendreFTVector<S>where
S: StatisticsType,
Source§fn default() -> PiecewiseLegendreFTVector<S>
fn default() -> PiecewiseLegendreFTVector<S>
Returns the “default value” for a type. Read more
Source§impl<S> Index<usize> for PiecewiseLegendreFTVector<S>where
S: StatisticsType,
impl<S> Index<usize> for PiecewiseLegendreFTVector<S>where
S: StatisticsType,
Source§impl<S> IndexMut<usize> for PiecewiseLegendreFTVector<S>where
S: StatisticsType,
impl<S> IndexMut<usize> for PiecewiseLegendreFTVector<S>where
S: StatisticsType,
Auto Trait Implementations§
impl<S> Freeze for PiecewiseLegendreFTVector<S>
impl<S> RefUnwindSafe for PiecewiseLegendreFTVector<S>where
S: RefUnwindSafe,
impl<S> Send for PiecewiseLegendreFTVector<S>where
S: Send,
impl<S> Sync for PiecewiseLegendreFTVector<S>where
S: Sync,
impl<S> Unpin for PiecewiseLegendreFTVector<S>where
S: Unpin,
impl<S> UnsafeUnpin for PiecewiseLegendreFTVector<S>
impl<S> UnwindSafe for PiecewiseLegendreFTVector<S>where
S: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSendSync for T
impl<T> MaybeSync for Twhere
T: Sync,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.