MathPHP\LinearAlgebra\MatrixAxiomsTest::testSymmetricInverseTranposeEqualsIdentity PHP Метод

testSymmetricInverseTranposeEqualsIdentity() публичный Метод

Axiom: A⁻¹Aᵀ = I Symmetric matrix inverse times tranpose equals identity matrix
    public function testSymmetricInverseTranposeEqualsIdentity(array $A)
    {
        $A = MatrixFactory::create($A);
        $A⁻¹ = $A->inverse();
        $Aᵀ = $A->transpose();
        $A⁻¹Aᵀ = $A⁻¹->multiply($Aᵀ);
        $I = MatrixFactory::identity($A->getM());
        $this->assertEquals($I, $A⁻¹Aᵀ);
        $this->assertEquals($I->getMatrix(), $A⁻¹Aᵀ->getMatrix());
    }
MatrixAxiomsTest