# concatenate¶

tenpy.linalg.np_conserved.concatenate(arrays, axis=0, copy=True)[source]

Stack arrays along a given axis, similar as np.concatenate.

Stacks the qind of the array, without sorting/blocking. Labels are inherited from the first array only.

Parameters
• arrays (iterable of Array) – The arrays to be stacked. They must have the same shape and charge data except on the specified axis.

• axis (int | str) – Leg index or label of the first array. Defines the axis along which the arrays are stacked.

• copy (bool) – Whether to copy the data blocks.

Returns

stacked – Concatenation of the given arrays along the specified axis.

Return type

Array

Array.sort_legcharge()