fulltosparse (Fortran version) (Scripts) Publisher's description
from James Tursa
This example demonstrates how to populate a sparse matrix
SYNTAX: B = fulltosparse(A)
A = full 2-dimensional double matrix
B = sparse 2-dimensional double matrix version of A
This example demonstrates how to populate a sparse matrix. For the purpose of this example, you must pass in a non-sparse 2-dimensional argument of type double. fulltosparse.for is basically a direct conversion of The Mathworks supplied file fulltosparse.c
This fulltosparse.for file allows for incremental reallocation of memory to bump up the size of the sparse matrix dynamically. This is the main difference beteen this converted file and the MathWorks supplied fulltosparse.f and loadsparse.f files, which do not have this capability. I have also added a few more comments to my converted code.
To generate the dll from the source file:
>> mex -setup
(then pick a Fortran compiler from the available list)
>> mex fulltosparse.for
That's it, now you are ready to use fulltosparse.
System Requirements:MATLAB 7.4 (R2007a)
Program Release Status: New Release
Program Install Support: Install and Uninstall