The Hadamard product is an element-by-element product of the two matrices. Let \({\bf{x}}\)
and \({\bf{x}}\) be two \(m \times n\) numeric matrices. The Hadamard product is \({\bf{x}}\, \circ \,{\bf{y}} = \left[ {\begin{array}{*{20}{c}}
{{x_{1,1}}\,{y_{1,1}}}&{{x_{1,2}}\,{y_{1,2}}}& \cdots &{{x_{1,n}}\,{y_{1,n}}}\\
{{x_{2,1}}\,{y_{121}}}&{{x_{2,2}}\,{y_{2,2}}}& \cdots &{{x_{2,n}}\,{y_{2,n}}}\\
\cdots & \cdots & \cdots & \cdots \\
{{x_{m,1}}\,{y_{m,1}}}&{{x_{m,2}}\,{y_{m,2}}}& \cdots &{{x_{m,n}}\,{y_{m,n}}}
\end{array}} \right]\).
It uses the * operation in R.