MathPHP\LinearAlgebra\ColumnVectorTest::testTranspose PHP Method

testTranspose() public method

public testTranspose ( array $M )
$M array
    public function testTranspose(array $M)
    {
        $C = new ColumnVector($M);
        $Cᵀ = $C->transpose();
        $this->assertInstanceOf('MathPHP\\LinearAlgebra\\RowVector', $Cᵀ);
        $this->assertInstanceOf('MathPHP\\LinearAlgebra\\Matrix', $Cᵀ);
        $this->assertEquals(1, $Cᵀ->getM());
        $this->assertEquals(count($M), $Cᵀ->getN());
        $this->assertEquals($M, $Cᵀ->getRow(0));
    }