NumPHPTest\Core\NumArray\DotTest::testDotMatrixVector PHP Метод

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

Tests NumArray::dot with matrix and vector
public testDotMatrixVector ( )
    public function testDotMatrixVector()
    {
        $numArray1 = NumPHP::arange(1, 12)->reshape(3, 4);
        $numArray2 = NumPHP::arange(1, 4);
        $expectedNumArray = NumPHP::arange(30, 110, 40);
        $this->assertNumArrayEquals($expectedNumArray, $numArray1->dot($numArray2));
    }