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_getType


gets the type of an MTensor.
  • Used in C/C++ code in a library function called from Mathematica.
  • Returns one of MType_Integer, MType_Real, or MType_Complex.
This checks that this is an integer MTensor:
This checks that this is an integer MTensor:
MTensor T0;
mint type;
...
type = libData->MTensor_getType( T0);
if ( type != MType_Integer) {
processError();
}
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF