Multiply the i-esim column of a matrix for the i-esim element of a vector Suppose you have a square matrix $A$ of order $n$ and a vector $\upsilon$ of dimension $n$ as well. Is there a way to combine elements in $\upsilon$ in the form of matrix (let's call this matrix $B$) such that a matrix operation between $B$ and $A$ allows me to get $C$.

Where $C$ is defined as follow:

$$C=\begin{bmatrix}
\upsilon_1a_{11} &amp;  \upsilon_2a_{12} &amp; \cdots  &amp; \upsilon_na_{1n} \\ 
\upsilon_1a_{21} &amp;  \upsilon_2a_{22} &amp; \cdots &amp; \upsilon_na_{2n}\\ 
\vdots &amp; \vdots &amp; \ddots &amp; \vdots \\ 
\upsilon_1 a_{n1} &amp;  \upsilon_2a_{n2} &amp; \cdots  &amp; \upsilon_ na_{nn}
\end{bmatrix}$$

Thanks for any help you can provide.
Yes, $C=AB$ if $B=\begin{bmatrix}v_1&amp;0&amp;\cdots &amp; 0 \\
0&amp; v_2 &amp; \cdots &amp; 0\\
\vdots &amp; \vdots &amp; \ddots &amp; \vdots \\
0&amp;0&amp;\cdots &amp; v_n
\end{bmatrix}$.
Yes, $C=AB$ if $B=\begin{bmatrix}v_1&amp;0&amp;\cdots &amp; 0 \\
0&amp; v_2 &amp; \cdots &amp; 0\\
\vdots &amp; \vdots &amp; \ddots &amp; \vdots \\
0&amp;0&amp;\cdots &amp; v_n
\end{bmatrix}$.