NumPHPTest\Core\NumArray\Reduce\SumTest::testSumMatrix PHP Method

testSumMatrix() public method

Tests NumArray::sum with a matrix without arguments
public testSumMatrix ( )
    public function testSumMatrix()
    {
        $numArray = NumPHP::arange(1, 12)->reshape(3, 4);
        $expectedNumArray = new NumArray(78);
        $this->assertNumArrayEquals($expectedNumArray, $numArray->sum());
    }