MathPHP\LinearAlgebra\MatrixOperationsTest::testCofactorExceptionBadRow PHP Method

testCofactorExceptionBadRow() public method

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