Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >
MATHEMATICA LIBRARYLINK C FUNCTION|Tutorials »

MTensor_getRank


gets the rank of an MTensor.
  • Used in C/C++ code in a library function called from Mathematica.
  • The rank shows the number of indices that are needed to reference each element.
This gets the rank of an MTensor:
This gets the rank of an MTensor:
MTensor T0;
mint rank;
...
rank = libData->MTensor_getRank( T0);
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF