fulltosparse (Fortran version)

버전 1.0.0.0 (3.37 KB) 작성자: James Tursa
This is a Fortran version of The Mathworks supplied fulltosparse.c, with realloc capability.
다운로드 수: 986
업데이트 날짜: 2008/2/25

라이선스 없음

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.

인용 양식

James Tursa (2024). fulltosparse (Fortran version) (https://www.mathworks.com/matlabcentral/fileexchange/18891-fulltosparse-fortran-version), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Fortran with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0