**Hint.** If $v$ is a vector, then $Av\equiv A\operatorname{diag}(v)\mathbf1$, where $\operatorname{diag}(v)$ is the diagonal matrix whose diagonal entries are elements of $v$ and $\mathbf 1$ is the vector of ones.
**Hint.** If $v$ is a vector, then $Av\equiv A\operatorname{diag}(v)\mathbf1$, where $\operatorname{diag}(v)$ is the diagonal matrix whose diagonal entries are elements of $v$ and $\mathbf 1$ is the vector of ones.