MathPHP\LinearAlgebra\MatrixAxiomsTest::testPInverseEqualsPTranspose PHP Method

testPInverseEqualsPTranspose() public method

P⁻¹ = Pᵀ Inverse of the permutation matrix equals the transpose of the permutation matrix
    public function testPInverseEqualsPTranspose(array $A)
    {
        $A = MatrixFactory::create($A);
        $LUP = $A->LUDecomposition();
        $P = $LUP['P'];
        $P⁻¹ = $P->inverse();
        $Pᵀ = $P->transpose();
        $this->assertEquals($P⁻¹, $Pᵀ);
    }
MatrixAxiomsTest