mwIndex (C and Fortran) - Type for index values

Description

mwIndex is a type that represents index values, such as indices into arrays. This function is provided for purposes of cross-platform flexibility. By default, mwIndex is equivalent to int in C. When using the mex -largeArrayDims switch, mwIndex is equivalent to size_t in C. mwIndex is equivalent to INTEGER*4 in Fortran. The C header file containing this type is:

#include "matrix.h"

In Fortran, mwIndex is implemented as a preprocessor macro. The Fortran header file containing this type is:

#include "fintrf.h"

See Also

mex, mwSize

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS