Code covered by the BSD License  

Highlights from
spok: checks if a MATLAB sparse matrix is OK

5.0

5.0 | 2 ratings Rate this file 5 Downloads (last 30 days) File Size: 15.19 KB File ID: #20186
image thumbnail

spok: checks if a MATLAB sparse matrix is OK

by Tim Davis

 

05 Jun 2008 (Updated 20 Aug 2008)

Useful for mexFunction authors only

| Watch this File

File Information
Description

This function is very helpful for authors of mexFunctions that return sparse matrices to MATLAB. It is of no use at all to those who work purely with M-files (if you do not write C mexFunctions, please don't bother downloading or rating this file).

A MATLAB sparse matrix is stored in a compressed-column form that can be difficult to generate in a C or Fortran mexFunction. This function, spok, will determine if your matrix is valid. You can also call the C spok function from inside your mexFunction.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Dec 2008 Qun HAN

Great work. But the submmited file is in c. I want to know if a MATLAB sparse matrix is passed into a FORTRAN mex file how to indexing it?

Please login to add a comment or rating.
Updates
20 Aug 2008

Removed POSIX standard function "snprintf" which Microsoft doesn't comprehend. Should now work on Windows.

Tag Activity for this File
Tag Applied By Date/Time
linear algebra Tim Davis 22 Oct 2008 10:04:54
sparse Tim Davis 22 Oct 2008 10:04:54
mex Tim Davis 22 Oct 2008 10:04:54

Contact us at files@mathworks.com