pub struct SymEigen {
pub values: Vec<f32>,
pub vectors: Vec<f32>,
}Expand description
Symmetric eigendecomposition A = V · diag(Λ) · Vᵀ.
Returned by jacobi_eigen. Packaging the two buffers in a named struct
removes the positional ambiguity of a (Vec<f32>, Vec<f32>) pair — a caller
can no longer transpose eigenvalues and eigenvectors at the destructuring
site — and carries the column-layout invariant on the fields where it is
used.
Fields§
§values: Vec<f32>Eigenvalues Λ (unsorted), length n.
vectors: Vec<f32>Row-major n × n eigenvector matrix V whose column k is the
eigenvector for values[k]: component i lives at vectors[i * n + k].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SymEigen
impl RefUnwindSafe for SymEigen
impl Send for SymEigen
impl Sync for SymEigen
impl Unpin for SymEigen
impl UnsafeUnpin for SymEigen
impl UnwindSafe for SymEigen
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
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more