title: Finding solutions to row reduced matrix python
body: <p>Suppose I have a reduced Matrix in this form:</p>
  
  <pre><code>   x    y    z    =
  [[2.0, 4.0, 4.0, 4.0], 
   [0.0, 2.0, 1.0, 2.0], 
   [0.0, 0.0, 1.0, 1.0], 
   [0.0, 0.0, 0.0, 0.0]]
  </code></pre>
  
  <p>And I want an array containing the solutions.</p>
  
  <p>In this case I'd want to return</p>
  
  <pre><code>  z    y     x
  [1.0, 0.5, -1.0]
  </code></pre>
  
  <p>We can assume it is a perfect triangle with no free variables.</p>
  
  <p>I was looking at <code>scipy.linalg.solve</code> to solve, but it requires the form <code>Ax=B</code> and I'm not sure how to convert to this form.</p>