LibraryLink`
LibraryLink`

MNumericArray_getDimensions (C 函数)

gets an array of the dimensions of an MNumericArray.

更多信息

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • The dimensions array has a length equal to the rank.
  • The dimensions array has the qualifier since the elements should not be modified.

范例

基本范例  (1)

This gets the dimensions of an MNumericArray:

MNumericArray A0;
mint const* dims;
...
dims = libData->numericarrayLibraryFunctions->MNumericArray_getDimensions(A0);