Fortran mxCreateLogicalSpar​seMatrix

버전 1.0.0.0 (4.41 KB) 작성자: James Tursa
The Fortran version of the mxCreateSparseLogicalMatrix function for mex and engine apps
다운로드 수: 966
업데이트 날짜: 2008/5/12

라이선스 없음

There are several mex and engine functions available for C programmers that are curiously missing for Fortran programmers. My other submissions cover many of these omissions. I think this current submission completes the list and fills is the last of the Fortran mex & engine routines that were missing from MATLAB's supplied API.

mxCreateSparseLogicalMatrix does the same thing as the C counterpart, i.e. it creates a sparse logical matrix with the requested parameters. There are two test driver routines supplied:

1) mexTestCreateSparseLogicalMatrix.for is a mex routine for testing the function.

2)engTestCreateSparseLogicalMatrix.for is an engine application for testing the function.

I had to accomplish the function differently in mex routines vs engine applications, so there are actually two different functions in the mxCreateSparseLogicalMatrix.for file. You select one or the other depending on whether or not the following define is present:

#define _ENGINE

Or, of course, you could just copy & paste the appropriate function into your source file.

인용 양식

James Tursa (2024). Fortran mxCreateLogicalSparseMatrix (https://www.mathworks.com/matlabcentral/fileexchange/19864-fortran-mxcreatelogicalsparsematrix), 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