protected function checkEntryEquality(Matrix $mB, $strict)
    {
        $dA = $this->toArray();
        $dB = $mB->toArray();
        $m = $this->rows();
        $n = $this->columns();
        for ($i=0; $i<$m; $i++) {
            for ($j=0; $j<$n; $j++) {
                if ($strict) {
                    if ($dA[$i][$j] !== $dB[$i][$j]) {
                        return false;
                    }
                } else {
                    if ($dA[$i][$j] != $dB[$i][$j]) {
                        return false;
                    }
                }
            }
        }

        return true;
    }
protected function checkEntryEquality(Matrix $mB, $strict)
    {
        $dA = $this->toArray();
        $dB = $mB->toArray();
        $m = $this->rows();
        $n = $this->columns();
        for ($i=0; $i<$m; $i++) {
            for ($j=0; $j<$n; $j++) {
                if ($strict) {
                    if ($dA[$i][$j] !== $dB[$i][$j]) {
                        return false;
                    }
                } else {
                    if ($dA[$i][$j] != $dB[$i][$j]) {
                        return false;
                    }
                }
            }
        }

        return true;
    }
protected function checkEntryEquality ( Matrix $ mB , $ strict ) { $ dA = $ this -> toArray ( ) ; $ dB = $ mB -> toArray ( ) ; $ m = $ this -> rows ( ) ; $ n = $ this -> columns ( ) ; for ( $ i = 0 ; $ i < $ m ; $ i ++ ) { for ( $ j = 0 ; $ j < $ n ; $ j ++ ) { if ( $ strict ) { if ( $ dA [ $ i ] [ $ j ] !== $ dB [ $ i ] [ $ j ] ) { return false ; } } else { if ( $ dA [ $ i ] [ $ j ] != $ dB [ $ i ] [ $ j ] ) { return false ; } } } } return true ; }
Check equality of each matrix entry
Overide in child class if required

@param \Chippyash\Matrix\Matrix $mB
@param boolean $strict

@return boolean
Check equality of each matrix entry Overide in child class if required