Registry / other / cminpack

cminpack

JSON →
library1.3.11vcpkgunverified

A C/C++ rewrite of the MINPACK software (originally in FORTRAN) for solving nonlinear equations and nonlinear least squares problems

vcpkg install cminpack
INSTALL
IMPORT
SIG · CMINPACK
C
cminpack
othercppv1.3.11
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.

cminpack.h
✓ #include <cminpack.h>

Solve a simple nonlinear equation using hybrd1

#include <cminpack.h> #include <stdio.h> int fcn(void *p, int n, double *x, double *fvec, int iflag) { fvec[0] = x[0]*x[0] - 4.0; return 0; } int main() { int n = 1; double x[1] = {1.0}; double fvec[1]; double tol = 1e-6; int info = hybrd1(fcn, 0, n, x, fvec, tol, 0); printf("Solution: %f\n", x[0]); return 0; }
Debug
Known issues
gotchacminpack uses Fortran-style 1-based indexing internally; C interface may be confusing.
fix
Refer to documentation for proper array indexing and workspace allocation.
affects: all
Upgrade
Version history
1.3.11latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources

No resource links recorded.

cminpack — pip install cminpack · libregistry