src/Malenki/Math/Matrix.php
public function sameSize($matrix)
    {
        return (
            $this->size->cols == $matrix->cols
            &&
            $this->size->rows == $matrix->rows
        );
    }
public function sameSize($matrix)
    {
        return (
            $this->size->cols == $matrix->cols
            &&
            $this->size->rows == $matrix->rows
        );
    }
Tests whether the current matrix is the same as the given one.

@param  Matrix  $matrix
@access public
@return boolean