LibraryLink`
LibraryLink`

MTensor_disownAll

disowns all references to an MTensor that was passed between a library function and Mathematica using shared memory management.

Details and OptionsDetails
  • Used in C/C++ code in a library function called from Mathematica.
  • Examples

    Basic Examples  (1)

    This disowns an MTensor:

    MTensor T0;
    ...
    libData->MTensor_disownAll( T0);

    Tutorials