public function concatenateBottom(self $other) : self { return $this->spliceRows($this->getRowCount(), 0, $other->toArray()); }
public function testConcatenateBottomWrongSizes() { $matrixA = new Matrix([[1, 2, 3]]); $matrixB = new Matrix([[4], [5], [6]]); static::expectException(MatrixException::class); $matrixA->concatenateBottom($matrixB); }