MathPHP\LinearAlgebra\MatrixOperationsTest::testTranspose PHP Метод

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

public testTranspose ( array $A, array $R )
$A array
$R array
    public function testTranspose(array $A, array $R)
    {
        $A = MatrixFactory::create($A);
        $R = MatrixFactory::create($R);
        $Aᵀ = $A->transpose();
        $this->assertEquals($R, $Aᵀ);
        // Transpose of transpose is the original matrix
        $Aᵀᵀ = $Aᵀ->transpose();
        $this->assertEquals($A, $Aᵀᵀ);
    }
MatrixOperationsTest