public testDotVectorMatrix ( ) |
public function testDotVectorMatrix()
{
$numArray1 = NumPHP::arange(1, 3);
$numArray2 = NumPHP::arange(2, 4)->reshape(3, 1);
$expectedNumArray = new NumArray([20]);
$this->assertNumArrayEquals($expectedNumArray, $numArray1->dot($numArray2));
}