title: NumPy - Adding a vector multiplied by a scalar to a matrix
body: <p>I'm new to NumPy and try to do the following thing <strong>without</strong> using loops.</p>
  <p>I have a (n, n) square matrix A and a vector x with size (1,n), and I would like to add the vector to each row of the matrix, while multiplying the vector by the index of the row. <br>
  That is, adding the vector * 1 to the first line, the vector * 2 to the second line and so on. <br>
  Again, loops are not allowed, only NumPy functions.</p>
  <p>For example, given the matrix:<br>
  [[0, 0, 0] <br>
  [0, 0, 0] <br>
  [0, 0, 0]] <br></p>
  <p>and the vector [[1,1,1]]<br></p>
  <p>I would like to get: <br>
  [[1, 1, 1] <br>
  [2, 2, 2] <br>
  [3, 3, 3]] <br></p>
  <p>I tried to use repeat in order to create a matrix with the shape of A from x, but couldn't manage the scalar multiplication. Is there any helpful function / effective method?</p>