MathPHP\LinearAlgebra\MatrixAxiomsTest::testKroneckerProductTranspose PHP 메소드

testKroneckerProductTranspose() 공개 메소드

Axiom: (A ⊗ B)ᵀ = Aᵀ ⊗ Bᵀ Transpose of Kronecker product
    public function testKroneckerProductTranspose(array $A, array $B)
    {
        $A = MatrixFactory::create($A);
        $B = MatrixFactory::create($B);
        $Aᵀ = $A->transpose();
        $Bᵀ = $B->transpose();
        $Aᵀ⊗Bᵀ = $Aᵀ->kroneckerProduct($Bᵀ);
        $⟮A⊗B⟯ᵀ = $A->kroneckerProduct($B)->transpose();
        $this->assertEquals($Aᵀ⊗Bᵀ->getMatrix(), $⟮A⊗B⟯ᵀ->getMatrix());
    }
MatrixAxiomsTest