LibraryLink`
LibraryLink`

MTensor_shareCount

returns the number of sharing references to an MTensor held by Mathematica.

更多信息

  • Used in C/C++ code in a library function called from Mathematica.

范例

基本范例  (1)

This disowns an MTensor:

MTensor T0;
mint cnt;
...
cnt = libData->MTensor_shareCount( T0);

教程