LibraryLink`
LibraryLink`

MNumericArray_getRank (C 函数)

gets the rank of an MNumericArray.

更多信息

  • 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.

范例

基本范例  (1)

This gets the rank of an MNumericArray:

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