code: public static boolean isEquals(BMatrixRMaj a, BMatrixRMaj b ) {
          if( a.numRows != b.numRows || a.numCols != b.numCols ) {
              return false;
          }
  
          final int length = a.getNumElements();
          for( int i = 0; i < length; i++ ) {
              if( !(a.get(i) == b.get(i)) ) {
                  return false;
              }
          }
  
          return true;
      }
docs: <p>
  Checks to see if each element in the two matrices are equal:
  a<sub>ij</sub> == b<sub>ij</sub>
  <p>
  
  <p>
  NOTE: If any of the elements are NaN then false is returned.  If two corresponding
  elements are both positive or negative infinity then they are equal.
  </p>
  
  @param a A matrix. Not modified.
  @param b A matrix. Not modified.
  @return true if identical and false otherwise.