Multiply matrices

Multiply matrices

Multiplies the matrices at inputs a and b. The dimensions of the matrices must be compatible. If the dimension of matrix a is N-by-K and the dimension of matrix b is K-by-M, the dimension of the result matrix result = a * b is N-by-M.

The input matrices can be transposed with tranpose flags.

Inputs

a
Input matrix.
b
Input matrix.

Outputs

output
Result matrix. The number format will be expanded so that there is no loss of accuracy. For example, multiplying an integer matrix with a floating point matrix returns a floating point matrix. Likewise, multiplying a floating point matrix with a complex matrix returns a complex matrix.