WOLFRAM

LibraryLink`

MNumericArray_getFlattenedLength (C Function)

[Experimental]
LibraryLink`

gets the total number of elements in an MNumericArray.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • This is the length of a flattened version of the MNumericArray.

Examples

Basic Examples  (1)Summary of the most common use cases

This gets the total number of elements of an MNumericArray:

MNumericArray A0;
mint len;
...
len = libData->numericarrayLibraryFunctions->MNumericArray_getFlattenedLength(A0);