C++ Math Library Reference    

User-Defined Conversion

There is only one user-defined conversion: from an mwArray to a double-precision floating-point number. This conversion function only works if the mwArray is scalar (1-by-1) and noncomplex.

operator double() const;
  

 Operators Memory Management