LibraryLink`
LibraryLink`

MNumericArray_getRank (C Function)

gets the rank of an MNumericArray.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • The rank shows the number of indices that are needed to reference each element.

Examples

Basic Examples  (1)

This gets the rank of an MNumericArray:

MNumericArray A0;
mint rank;
...
rank = libData->numericarrayLibraryFunctions->MNumericArray_getRank(A0);