title: ValueError: shapes (4,4) and (3,) not aligned: 4 (dim 1) != 3 (dim 0)
body: <pre><code>import numpy as np
  A = np.matrix([[1, 2, 3],
                 [4, 5, 6],
                 [7, 8, 9],
                 [10, 11, 12]])
  u, s, vt = np.linalg.svd(A)
  print (np.dot(u, np.dot(np.diag(s), vt)))
  </code></pre>
  
  <p>I use numpy for creating the matrix and It shows script error below.</p>
  
  <blockquote>
    <p>ValueError: shapes (4,4) and (3,) not aligned: 4 (dim 1) != 3 (dim 0)</p>
  </blockquote>