numpoly.concatenate

numpoly.concatenate(arrays: Sequence[numpoly.typing.PolyLike], axis: int = 0, out: Optional[numpoly.baseclass.ndpoly] = None)numpoly.baseclass.ndpoly[source]

Join a sequence of arrays along an existing axis.

Args:
arrays:

The arrays must have the same shape, except in the dimension corresponding to axis (the first, by default).

axis:

The axis along which the arrays will be joined. If axis is None, arrays are flattened before use. Default is 0.

out:

If provided, the destination to place the result. The shape must be correct, matching that of what concatenate would have returned if no out argument were specified.

Return:

The concatenated array.

Example:
>>> const = numpy.array([[1, 2], [3, 4]])
>>> poly = numpoly.variable(2).reshape(1, 2)
>>> numpoly.concatenate((const, poly), axis=0)
polynomial([[1, 2],
            [3, 4],
            [q0, q1]])
>>> numpoly.concatenate((const, poly.T), axis=1)
polynomial([[1, 2, q0],
            [3, 4, q1]])
>>> numpoly.concatenate((const, poly), axis=None)
polynomial([1, 2, 3, 4, q0, q1])