No License
The m-file imsl2c.m (IMSL to 'C') automates the process of writing the source code for C MEX files which, in turn, call routines in the IMSL numeric libraries. These libraries are included in the professional version of DEC's Digital Visual Fortran. The mat-file imsl.mat contains structures that have the types, names, and parameters needed by imsl2c.m to create function prototypes and correct calling conventions for routines in the IMSL libraries.
Once the C file has been created, the m-file imslmex is used to create the mex with the aforementioned C-file and links against the double precision versions of the IMSL libraries.
There are some routines that use a pointer to another function, e.g. routines for solving ODE's, optimization problems, etc. After using imsl2c.m for these routines, it is up to the user to edit the resulting C-file and put in the function body for the 'pointed to' function. A prototype for this function will automatically be created named 'FCN'.
Additional input/output arguments can be created by imsl2c, but it is up to the user to edit the c-file such that these variables are defined, assigned values, etc.
Tested with Matlab ver 5.2.1.1420 on WIN95.
Cite As
Darrin Smith (2024). imsl2c (https://www.mathworks.com/matlabcentral/fileexchange/176-imsl2c), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
imsl2c/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |