[Tex/LaTex] Operator to perform hadamard product between a repeated vector and a matrix


Suppose that I have a m x n matrix A and a m x 1 vector b. I want to describe the following computations with some LaTeX operator:

Form a matrix B repeating b for n times, then perform the Hadamard product between A and B.

Does exists an operator for such task? If not, can someone provide an elegant way to express the computation?

Best Answer

Not entirely sure if this is what you want, but I would write it like this:

A \circ \vec{b} = (a_{ij}\cdot b_i) = 
a_{11} \cdot b_{1} & \cdots & a_{1n} \cdot b_{1} \\
\vdots & \ddots & \vdots \\ 
a_{m1} \cdot b_{m} & \cdots & a_{mn} \cdot b_{m} 


\circ is the symbol I have seen used for Hadamard-product, you would be extending it's meaning for a Hadamard-product between Matrix and Vector. I'm not sure if this symbol is already used for some other operation between Matrix and Vector, but you could choose whatever symbol you want, or a function for that matter.

Related Question