MathPHP\LinearAlgebra\MatrixAxiomsTest::testTransposeProductIsProductOfTranposesInReverseOrder PHP Method

testTransposeProductIsProductOfTranposesInReverseOrder() public method

(AB)ᵀ = BᵀAᵀ Transpose of a product of matrices equals the product of their transposes in reverse order.
    public function testTransposeProductIsProductOfTranposesInReverseOrder(array $A, array $B)
    {
        $A = MatrixFactory::create($A);
        $B = MatrixFactory::create($B);
        // (AB)ᵀ
        $⟮AB⟯ᵀ = $A->multiply($B)->transpose();
        // BᵀAᵀ
        $Bᵀ = $B->transpose();
        $Aᵀ = $A->transpose();
        $BᵀAᵀ = $Bᵀ->multiply($Aᵀ);
        $this->assertEquals($⟮AB⟯ᵀ->getMatrix(), $BᵀAᵀ->getMatrix());
    }
MatrixAxiomsTest