MTensor_shareCount


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

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

This disowns an MTensor:

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