Mercurial > hg > octave-nkf
diff examples/mysparse.c @ 6686:2aad75fcc93a
[project @ 2007-06-03 20:58:28 by dbateman]
author | dbateman |
---|---|
date | Sun, 03 Jun 2007 20:58:29 +0000 |
parents | d2bb3b8a8d20 |
children | 4270ded9ddc6 |
line wrap: on
line diff
--- a/examples/mysparse.c +++ b/examples/mysparse.c @@ -3,13 +3,13 @@ void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { - int n, m, nz; + mwSize n, m, nz; mxArray *v; - int i; + mwIndex i; double *pr, *pi; double *pr2, *pi2; - int *ir, *jc; - int *ir2, *jc2; + mwIndex *ir, *jc; + mwIndex *ir2, *jc2; if (nrhs != 1 || ! mxIsSparse (prhs[0])) mexErrMsgTxt ("expects sparse matrix");