Special Matrix Coercion Cases for the Matrix Functions
The Matrix functions manipulate the elements, diagonals, and submatrices of a matrix or 2D numeric array. When you use the Set Matrix Diagonal, Set Matrix Elements, and Set Submatrix functions, you can add new elements to the original matrix or 2D array. However, when the input matrix cannot store new elements without a loss of precision, the function changes the output data type. The following table defines the output data type when the input matrix cannot store the data type of new elements.
Input Matrix Type
New Element Type
Output Data Type
Real matrix
CSG (scalar)
Complex matrix
CDB (scalar)
Array of CSG
Array of CDB
Note��The matrix functions do not support I64, U64, EXT, and CXT numeric types. Use the Conversion functions to convert the data to a data type the Matrix functions support.