MathPHP\LinearAlgebra\MatrixOperationsTest::testAddExceptionRows PHP 메소드

testAddExceptionRows() 공개 메소드

    public function testAddExceptionRows()
    {
        $A = MatrixFactory::create([[1, 2], [2, 3]]);
        $B = MatrixFactory::create([[1, 2]]);
        $this->setExpectedException('MathPHP\\Exception\\MatrixException');
        $A->add($B);
    }
MatrixOperationsTest