pub struct EigenSpace<T> { /* private fields */ }Expand description
The eigenspace associated with one eigenvalue.
Implementations§
Source§impl<T> EigenSpace<T>
impl<T> EigenSpace<T>
Sourcepub fn new(
value: Eigenvalue<T>,
basis: Vec<Eigenvector<T>>,
) -> Result<EigenSpace<T>, EigenError>
pub fn new( value: Eigenvalue<T>, basis: Vec<Eigenvector<T>>, ) -> Result<EigenSpace<T>, EigenError>
Creates a new eigenspace from an eigenvalue and basis vectors.
§Errors
Returns EigenError::EmptyEigenspace when basis is empty.
Sourcepub fn try_new(
value: Eigenvalue<T>,
basis: Vec<Eigenvector<T>>,
) -> Result<EigenSpace<T>, EigenError>
pub fn try_new( value: Eigenvalue<T>, basis: Vec<Eigenvector<T>>, ) -> Result<EigenSpace<T>, EigenError>
Creates a new eigenspace from an eigenvalue and basis vectors.
§Errors
Returns EigenError::EmptyEigenspace when basis is empty.
Sourcepub const fn value(&self) -> &Eigenvalue<T>
pub const fn value(&self) -> &Eigenvalue<T>
Returns the associated eigenvalue.
Sourcepub fn basis(&self) -> &[Eigenvector<T>]
pub fn basis(&self) -> &[Eigenvector<T>]
Returns the basis vectors.
Sourcepub fn into_inner(self) -> (Eigenvalue<T>, Vec<Eigenvector<T>>)
pub fn into_inner(self) -> (Eigenvalue<T>, Vec<Eigenvector<T>>)
Returns the stored eigenvalue and basis vectors.
Trait Implementations§
Source§impl<T> Clone for EigenSpace<T>where
T: Clone,
impl<T> Clone for EigenSpace<T>where
T: Clone,
Source§fn clone(&self) -> EigenSpace<T>
fn clone(&self) -> EigenSpace<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 EigenSpace<T>where
T: Debug,
impl<T> Debug for EigenSpace<T>where
T: Debug,
Source§impl<T> PartialEq for EigenSpace<T>where
T: PartialEq,
impl<T> PartialEq for EigenSpace<T>where
T: PartialEq,
Source§fn eq(&self, other: &EigenSpace<T>) -> bool
fn eq(&self, other: &EigenSpace<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> Eq for EigenSpace<T>where
T: Eq,
impl<T> StructuralPartialEq for EigenSpace<T>
Auto Trait Implementations§
impl<T> Freeze for EigenSpace<T>where
T: Freeze,
impl<T> RefUnwindSafe for EigenSpace<T>where
T: RefUnwindSafe,
impl<T> Send for EigenSpace<T>where
T: Send,
impl<T> Sync for EigenSpace<T>where
T: Sync,
impl<T> Unpin for EigenSpace<T>where
T: Unpin,
impl<T> UnsafeUnpin for EigenSpace<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EigenSpace<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