code: public T scale( double val ) {
          T ret = createLike();
          ops.scale(mat,val,ret.getMatrix());
          return ret;
      }
docs: <p>
  Returns the result of scaling each element by 'val':<br>
  b<sub>i,j</sub> = val*a<sub>i,j</sub>
  </p>
  
  @see CommonOps_DDRM#scale(double, DMatrixD1)
  
  @param val The multiplication factor.
  @return The scaled matrix.