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
arraysiterable of Array

The arrays to be stacked. They must have the same shape and charge data except on the specified axis.

axisint | str

Leg index or label of the first array. Defines the axis along which the arrays are stacked.

copybool

Whether to copy the data blocks.

Returns
stackedArray

Concatenation of the given arrays along the specified axis.

See also

Array.sort_legcharge

can be used to block by charges along the axis.