MathPHP\LinearAlgebra\RowVectorTest::testConstructor PHP Метод

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

public testConstructor ( array $M, array $V )
$M array
$V array
    public function testConstructor(array $M, array $V)
    {
        $R = new RowVector($M);
        $V = new Matrix($V);
        $this->assertInstanceOf('MathPHP\\LinearAlgebra\\RowVector', $R);
        $this->assertInstanceOf('MathPHP\\LinearAlgebra\\Matrix', $R);
        $this->assertEquals($V[0], $R[0]);
        $this->assertEquals(1, $V->getM());
        $this->assertEquals(count($M), $V->getN());
    }