27 idx max_sweeps = 100);
32 idx oversampling = 10,
Backend enum and default backend selection.
Thin wrappers around <cmath> and <numeric> with readable names.
Dense row-major matrix templated over scalar type T.
SVDResult svd_truncated(const Matrix &A, idx k, Backend backend=default_backend, idx oversampling=10, Rng *rng=nullptr)
SVDResult svd(const Matrix &A, Backend backend=lapack_backend, real tol=1e-12, idx max_sweeps=100)
constexpr Backend lapack_backend
constexpr Backend default_backend
QR factorization via Householder reflections.
Seeded pseudo-random number generator (Mersenne Twister). Pass a pointer to rng_* functions to draw s...
Dense vector storage and operations.