using integer arrays on mex
问题 I want to pass an integer array from MATLAB to C. I've tried using the type uint64_T but it keeps crashing. Getting a double pointer using mxGetPr() works fine, but I need to typecast the content into an integer and doing so in every iteration might be slow. I've tried this in the mexFunction: uint64_T *l; l= (uint64_T *)mxGetData(prhs[1]); The function calling this variable is of this form: void XAction( const double *v, const uint64_T *l, double *w) { for (j=c; j; j--) for (i=r-1; i; i--) w