NumPHPTest\Core\NumArray\DotTest::testDotMatrixMatrix PHP Method

testDotMatrixMatrix() public method

Tests NumArray::dot with two matrices
public testDotMatrixMatrix ( )
    public function testDotMatrixMatrix()
    {
        $numArray1 = NumPHP::arange(1, 12)->reshape(3, 4);
        $numArray2 = NumPHP::arange(5, 28)->reshape(4, 6);
        $expectedNumArray = new NumArray([[170, 180, 190, 200, 210, 220], [394, 420, 446, 472, 498, 524], [618, 660, 702, 744, 786, 828]]);
        $this->assertNumArrayEquals($expectedNumArray, $numArray1->dot($numArray2));
    }