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.

  • 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.


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

Return type:


See also


can be used to block by charges along the axis.