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

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

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