pub struct Eigensystem<T> { /* private fields */ }Expand description
A non-empty collection of eigenpairs.
Implementations§
Source§impl<T> Eigensystem<T>
impl<T> Eigensystem<T>
Sourcepub fn new(pairs: Vec<Eigenpair<T>>) -> Result<Eigensystem<T>, EigenError>
pub fn new(pairs: Vec<Eigenpair<T>>) -> Result<Eigensystem<T>, EigenError>
Sourcepub fn try_new(pairs: Vec<Eigenpair<T>>) -> Result<Eigensystem<T>, EigenError>
pub fn try_new(pairs: Vec<Eigenpair<T>>) -> Result<Eigensystem<T>, EigenError>
Sourcepub fn from_pairs(
pairs: Vec<Eigenpair<T>>,
) -> Result<Eigensystem<T>, EigenError>
pub fn from_pairs( pairs: Vec<Eigenpair<T>>, ) -> Result<Eigensystem<T>, EigenError>
Creates a new eigensystem from eigenpairs.
§Errors
Returns EigenError::EmptyEigensystem when pairs is empty.
Sourcepub fn into_inner(self) -> Vec<Eigenpair<T>>
pub fn into_inner(self) -> Vec<Eigenpair<T>>
Returns the stored eigenpairs.
Trait Implementations§
Source§impl<T> AsRef<[Eigenpair<T>]> for Eigensystem<T>
impl<T> AsRef<[Eigenpair<T>]> for Eigensystem<T>
Source§impl<T> Clone for Eigensystem<T>where
T: Clone,
impl<T> Clone for Eigensystem<T>where
T: Clone,
Source§fn clone(&self) -> Eigensystem<T>
fn clone(&self) -> Eigensystem<T>
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<T> Debug for Eigensystem<T>where
T: Debug,
impl<T> Debug for Eigensystem<T>where
T: Debug,
Source§impl<T> PartialEq for Eigensystem<T>where
T: PartialEq,
impl<T> PartialEq for Eigensystem<T>where
T: PartialEq,
Source§fn eq(&self, other: &Eigensystem<T>) -> bool
fn eq(&self, other: &Eigensystem<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> Eq for Eigensystem<T>where
T: Eq,
impl<T> StructuralPartialEq for Eigensystem<T>
Auto Trait Implementations§
impl<T> Freeze for Eigensystem<T>
impl<T> RefUnwindSafe for Eigensystem<T>where
T: RefUnwindSafe,
impl<T> Send for Eigensystem<T>where
T: Send,
impl<T> Sync for Eigensystem<T>where
T: Sync,
impl<T> Unpin for Eigensystem<T>where
T: Unpin,
impl<T> UnsafeUnpin for Eigensystem<T>
impl<T> UnwindSafe for Eigensystem<T>where
T: 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