NumPHPTest\Core\NumArray\DotTest::testDotMatrixScalar PHP 메소드

testDotMatrixScalar() 공개 메소드

Tests NumArray::dot with matrix and scalar value
public testDotMatrixScalar ( )
    public function testDotMatrixScalar()
    {
        $numArray = NumPHP::arange(1, 12)->reshape(3, 4);
        $expectedNumArray = NumPHP::arange(5, 60, 5)->reshape(3, 4);
        $this->assertNumArrayEquals($expectedNumArray, $numArray->dot(5));
    }