/** * Tests NumArray::reshape with matrix 3x4 to matrix 2x6 */ public function testReshape3x4To2x6() { $numArray = new NumArray([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]); $expectedNumArray = new NumArray([[1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12]]); $this->assertNumArrayEquals($expectedNumArray, $numArray->reshape(2, 6)); }