int MTensor_getInteger (MTensor t, mint*pos, mint*pres) gets an element from an MTensor of integer type.
int MTensor_getInteger (MTensor t, mint*pos, mint numpos, MTensor*pres) gets a subtensor element from an MTensor.
mint MTensor_getRank (MTensor t) gets the rank of an MTensor.
double*MTensor_getRealData (MTensor t) gets an array of the data elements of an MTensor of real type.
int MTensor_getInteger (MTensor t, mint*pos, mreal*pres) gets a single element of an MTensor of real type.
mint MTensor_getType (MTensor t) gets the type of an MTensor.
int MTensor_new (mint type, mint rank, mint const*dims, MTensor*pres) is a library callback function that creates a new MTensor.
void MTensor_setComplex (MTensor t, mint*pos, mcomplex value) sets a single element of an MTensor of complex type.
void MTensor_setInteger (MTensor t, mint*pos, mint value) sets a single element of an MTensor of integer type.
int MTensor_setMTensor (MTensor t, MTensor val, mint*pos, mint numpos) sets a subtensor element in an MTensor.