MathPHP\LinearAlgebra\MatrixAxiomsTest::testKroneckerProductAssociativity PHP Method

testKroneckerProductAssociativity() public method

Axiom: (A ⊗ B) ⊗ C = A ⊗ (B ⊗ C) Kronecker product associative
    public function testKroneckerProductAssociativity(array $A, array $B, array $C)
    {
        $A = MatrixFactory::create($A);
        $B = MatrixFactory::create($B);
        $C = MatrixFactory::create($C);
        $⟮A⊗B⟯⊗C = $A->kroneckerProduct($B)->kroneckerProduct($C);
        $A⊗⟮B⊗C⟯ = $A->kroneckerProduct($B->kroneckerProduct($C));
        $this->assertEquals($⟮A⊗B⟯⊗C->getMatrix(), $A⊗⟮B⊗C⟯->getMatrix());
    }
MatrixAxiomsTest