Skip to content

EigResult

Module: strata.core • Kind: struct • Traits: Copyable, Movable
Source: strata/core/linalg.mojo

struct EigResult[dtype: DType = DType.float64](Copyable, Movable)
from strata.core import EigResult

Result of Symmetric Eigenvalue Decomposition (AV=VΛA V = V \Lambda).


def __init__(
out self,
var eigenvalues: List[Scalar[Self.dtype]],
var eigenvectors: Matrix[Self.dtype],
)

Initialize an EigResult container.


Attribute Description
eigenvalues Real eigenvalues vector of length NN in ascending order.
eigenvectors Eigenvector matrix of shape (N,N)(N, N) with columns representing eigenvectors.