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