times - Maple Help

MTM

 times
 element-wise multiplication

 Calling Sequence times(M1,M2)

Parameters

 M1 - array or expression M2 - array or expression

Description

 • The times(M1,M2) function performs element-wise multiplication of M1 * M2.  The result, R, is formed as R[i,j] = M1[i,j] * M2[i,j].
 • Arrays M1 and M2 must be the same size.

Examples

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