Struct rgsl::types::eigen_symmetric_workspace::EigenSymmetricVWorkspace
[−]
[src]
pub struct EigenSymmetricVWorkspace { /* fields omitted */ }
Methods
impl EigenSymmetricVWorkspace
[src]
fn new(n: usize) -> Option<EigenSymmetricVWorkspace>
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).
fn symmv(
&self,
A: &mut MatrixF64,
eval: &mut VectorF64,
evec: &mut MatrixF64
) -> Value
&self,
A: &mut MatrixF64,
eval: &mut VectorF64,
evec: &mut MatrixF64
) -> 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.