title: Subtract 1 x M matrix from N x M matrix in ejml
body: <p>Assuming a 1 x M (A) and N x M (B) SimpleMatrix objects in ejml, is there a simple way to subtract A from B?  I was looking for a way to repeat the rows of A to be the size of B, but didn't find the method to do this easily.</p>
  
  <pre><code>SimpleMatrix A = new SimpleMatrix(1, 2);
  SimpleMatrix B = new SimpleMatrix(2, 2);
  
  A.set(1.0);
  
  B.setRow(0, 0, 2.0, 2.0);
  B.setRow(1, 0, 4.0, 4.0);
  
  // Throws java.lang.IllegalArgumentException
  // The 'a' and 'b' matrices do not have compatible dimensions
  SimpleMatrix C = B.minus(A);
  
  // Expecting
  // 1 1
  // 3 3
  </code></pre>
  
  <p>Many answers using matlab (<a href="https://stackoverflow.com/questions/4723824/how-can-i-divide-each-row-of-a-matrix-by-a-fixed-row">here</a> and <a href="https://stackoverflow.com/questions/5342857/how-to-subtract-a-vector-from-each-row-of-a-matrix">here</a>), but I couldn't find a simple syntax for ejml.</p>