How can I divide each elements of rows of a symmetric matrix NxN by a column vector (Nx1), such that I can obtain not a Nx1 vector but again a symmetric matrix NxN, where each elements along the rows are divided by the correspiding elements of the column vector? here the matrix:
In1 In2 In3 In4
In1 0
In2 0 0
In3 0,125 0,125 0
In4 0 0 0,125 0
here the column vector:
0,125
0,25
0,625
0,25
here the final matrix after the division:
In1 In2 In3 In4
In1 0
In2 0 0
In3 0,2 0,2 0
In4 0 0 0,5 0
Thanks in advance for your help!