concatenate¶
full name: tenpy.linalg.np_conserved.concatenate
parent module:
tenpy.linalg.np_conserved
type: function
-
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.
- arraysiterable of
- Returns
- stacked
Array
Concatenation of the given arrays along the specified axis.
- stacked
See also
Array.sort_legcharge
can be used to block by charges along the axis.