Changeset 4752
- Timestamp:
- 07/22/10 14:18:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/SparseToVector/SparseToVector.cpp
r4751 r4752 17 17 double *prd=NULL; 18 18 19 /* Check for proper number of arguments */ 20 21 if (nrhs == 0 && nlhs == 0) { 22 SparseToVectorUsage(); 23 return; 24 } 25 else if (nrhs < 1 || nlhs < 2 || nlhs > 6) { 26 SparseToVectorUsage(); 27 mexErrMsgTxt(" "); 28 } 19 /*Boot module: */ 20 MODULEBOOT(); 21 22 /*checks on arguments on the matlab side: */ 23 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&SparseToVectorUsage); 29 24 30 25 /* Create matrices for the return arguments */ 31 32 26 if (!mxIsNumeric(A_IN) || !mxIsSparse(A_IN)) { 33 27 mexPrintf("%s -- Input matrix must be numeric and sparse.\n",__FUNCT__); … … 80 74 __FUNCT__,mxGetM(A_IN),mxGetN(A_IN),mxGetNzmax(A_IN)); 81 75 } 76 77 /*end module: */ 78 MODULEEND(); 82 79 } 83 80
Note:
See TracChangeset
for help on using the changeset viewer.