mtimes - Maple Help

MTM

 mtimes
 matrix multiplication

 Calling Sequence mtimes(M1,M2)

Parameters

 M1 - array M2 - array

Description

 • The mtimes(M1,M2) function performs matrix multiplication of M1 * M2.  If either M1 or M2 is a scalar, then element-wise multiplication is performed instead.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $\mathrm{M1}≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=1\right):$
 > $\mathrm{M2}≔\mathrm{Matrix}\left(3,2,'\mathrm{fill}'=2\right):$
 > $\mathrm{mtimes}\left(\mathrm{M1},\mathrm{M2}\right)$
 $\left[\begin{array}{cc}{6}& {6}\\ {6}& {6}\end{array}\right]$ (1)