LIBRARY LINK 符号

MTensor_getDimensions


gets an array of the dimensions of an MTensor.

更多信息更多信息

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

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

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

This gets the dimensions of an MTensor:

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