NumPHPTest\Core\NumArray\Reduce\MeanTest::testMeanMatrix2x3x4Axis0 PHP Метод

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

Tests NumArray::sum with a 2x3x4 matrix and argument 0
    public function testMeanMatrix2x3x4Axis0()
    {
        $numArray = NumPHP::arange(1, 24)->reshape(2, 3, 4);
        $expectedNumArray = NumPHP::arange(7, 18)->reshape(3, 4);
        $this->assertNumArrayEquals($expectedNumArray, $numArray->mean(0));
    }