code: public static void subtract(double val , DMatrixD1 a , DMatrixD1 c ) {
          c.reshape(a.numRows,a.numCols);
  
          final int length = a.getNumElements();
  
          for( int i = 0; i < length; i++ ) {
              c.data[i] = val - a.data[i];
          }
      }
docs: <p>Performs matrix scalar subtraction:<br>
  <br>
  c = val - a<br>
  c<sub>ij</sub> = val - a<sub>ij</sub><br>
  </p>
  
  @param val (input) The value that's subtracted to each element.
  @param a (input) A matrix. Not modified.
  @param c (Output) A matrix. Modified.