1

If I have a $n\times n$ matrix $A$ and a column vector $v$ of $n$ elements, I would like to define vector $x$ as:

$$x_{i} = \sqrt{\sum_{j}^{n}(A_{ij}v_{j})^{2}}$$

How can I write this in matrix form?

Is this ok, where $\circ$ is the Hadamard product?

$$x = \sqrt{A(v \circ v)}$$

S0rin
  • 421
  • I don't think you can write it in matrix form without using some external tools, because the equation is not linear. – TZakrevskiy Jul 26 '13 at 08:59

2 Answers2

1

You can write this as below:$$x\circ x=(A\circ A)(v\circ v)$$

1

Rather $\sqrt{(A\circ A)(v\circ v)}$, where $\sqrt{\bullet}$ is a “Hadamard (i.e., element-wise) square root.”

triple_sec
  • 23,377