code: public function sameSize($matrix)
      {
          return (
              $this->size->cols == $matrix->cols
              &&
              $this->size->rows == $matrix->rows
          );
      }
docs: Tests whether the current matrix is the same as the given one.
  
  @param  Matrix  $matrix
  @access public
  @return boolean