SPB Git

Repository Public

CNumericLAPACK.h 656 B 16 lines c

1#ifndef CNUMERIC_LAPACK_H2#define CNUMERIC_LAPACK_H34/// LU factorization (partial pivoting) of the column-major n×n matrix `a`, in place.5/// Returns LAPACK `info` (0 = ok, >0 = exactly singular). `ipiv` receives 1-based pivots.6int fn_lapack_lu(int n, double *a, int *ipiv);78/// In-place inverse of the column-major n×n matrix `a`. Returns 0 on success, >0 when singular.9int fn_lapack_inverse(int n, double *a);1011/// Thin SVD of the column-major m×n matrix `a` (destroyed): a = U·diag(s)·Vt,12/// U is m×k, Vt is k×n with k = min(m, n). Returns LAPACK `info`.13int fn_lapack_svd(int m, int n, double *a, double *s, double *u, double *vt);1415#endif16
Files main
Menu

Theme