LIBRARY LINK 符号

MTensor_getFlattenedLength


gets the total number of elements in an MTensor.

更多信息更多信息

  • Used in C/C++ code in a library function called from Mathematica.
  • This the length of a flattened version of the MTensor.

范例范例打开所有单元关闭所有单元

基本范例 (1)基本范例 (1)

This gets the total number of elements of an MTensor:

MTensor T0;
mint len;
...
len = libData->MTensor_getFlattenedLength( T0);
New to Mathematica? Find your learning path »
Have a question? Ask support »