public function checkMatrixDimensions($B = null)
    {
        if (is_a($B, 'Matrix')) {
            if (($this->m == $B->m) && ($this->n == $B->n)) {
                return true;
            } else {
                trigger_error(MatrixDimensionException, ERROR);
            }
        } else {
            trigger_error(ArgumentTypeException, ERROR);
        }
    }
public function checkMatrixDimensions($B = null)
    {
        if (is_a($B, 'Matrix')) {
            if (($this->m == $B->m) && ($this->n == $B->n)) {
                return true;
            } else {
                trigger_error(MatrixDimensionException, ERROR);
            }
        } else {
            trigger_error(ArgumentTypeException, ERROR);
        }
    }
public function checkMatrixDimensions ( $ B = null ) { if ( is_a ( $ B , 'Matrix' ) ) { if ( ( $ this -> m == $ B -> m ) && ( $ this -> n == $ B -> n ) ) { return true ; } else { trigger_error ( MatrixDimensionException , ERROR ) ; } } else { trigger_error ( ArgumentTypeException , ERROR ) ; } }
checkMatrixDimensions
Is matrix B the same size?
@param Matrix $B Matrix B
@return bool
checkMatrixDimensions Is matrix B the same size?