Registry / other / lapack-reference

lapack-reference

JSON →
library3.12.1vcpkgunverified

LAPACK provides routines for solving systems of linear equations, linear least squares, eigenvalue problems, and singular value decomposition.

vcpkg install lapack-reference
INSTALL
IMPORT
SIG · LAPACK-REFERENCE
L
lapack-reference
othercppv3.12.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lapack.h
#include <lapack.h>

Solve a linear system using LAPACK's dgesv

#include <lapack.h> #include <iostream> int main() { // Solve a linear system Ax = b using dgesv int n = 3, nrhs = 1, lda = 3, ldb = 1, info; double A[9] = {1, 2, 3, 4, 5, 6, 7, 8, 10}; double b[3] = {3, 6, 9}; int ipiv[3]; dgesv_(&n, &nrhs, A, &lda, ipiv, b, &ldb, &info); std::cout << "Solution: " << b[0] << " " << b[1] << " " << b[2] << std::endl; return 0; }
Debug
Known issues
gotchaLAPACK uses Fortran-style column-major ordering; C arrays must be transposed.
fix
Ensure matrices are stored column-major or use CBLAS wrappers.
affects: *
Upgrade
Version history
3.12.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

lapack-reference — pip install lapack-reference · libregistry