pub struct EigenSymmetricVWorkspace { /* private fields */ }
Implementations§
source§impl EigenSymmetricVWorkspace
impl EigenSymmetricVWorkspace
sourcepub fn new(n: usize) -> Option<Self>
pub fn new(n: usize) -> Option<Self>
This function allocates a workspace for computing eigenvalues and eigenvectors of n-by-n real symmetric matrices. The size of the workspace is O(4n).
sourcepub fn symmv(
&mut self,
A: &mut MatrixF64,
eval: &mut VectorF64,
evec: &mut MatrixF64
) -> Result<(), Value>
pub fn symmv( &mut self, A: &mut MatrixF64, eval: &mut VectorF64, evec: &mut MatrixF64 ) -> Result<(), Value>
This function computes the eigenvalues and eigenvectors of the real symmetric matrix A
.
The diagonal and lower triangular part of A
are destroyed during the computation, but the
strict upper triangular part is not referenced. The eigenvalues are stored in the vector
eval
and are unordered. The corresponding eigenvectors are stored in the columns of the
matrix evec
. For example, the eigenvector in the first column corresponds to the first
eigenvalue. The eigenvectors are guaranteed to be mutually orthogonal and normalised to unit
magnitude.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EigenSymmetricVWorkspace
impl !Send for EigenSymmetricVWorkspace
impl !Sync for EigenSymmetricVWorkspace
impl Unpin for EigenSymmetricVWorkspace
impl UnwindSafe for EigenSymmetricVWorkspace
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