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.
clapack.h
✓ #include <clapack.h>
Solve a linear system using CLAPACK's dgesv
#include <clapack.h>
#include <iostream>
int main() {
// Example: solve linear system using dgesv
integer n = 3, nrhs = 1, lda = 3, ldb = 3, info;
double a[9] = {1, 2, 3, 0, 1, 4, 5, 6, 0};
double b[3] = {1, 2, 3};
integer ipiv[3];
dgesv_(&n, &nrhs, a, &lda, ipiv, b, &ldb, &info);
std::cout << "Solution: " << b[0] << " " << b[1] << " " << b[2] << std::endl;
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.