Skip to content

svd

Module: strata.core • Kind: function
Source: strata/core/linalg.mojo

def svd[dtype: DType = DType.float64](
A: Matrix[dtype],
full_matrices: Bool = False,
) -> SVDResult[dtype]
from strata.core import svd

Computes the Singular Value Decomposition (SVD) of a matrix A = U * S * Vt.

Uses LAPACK’s divide-and-conquer algorithm (dgesdd/sgesdd).