User guide
a_mps.py
b_model.py
c_tebd.py
d_dmrg.py
tfi_exact.py
a_np_conserved.py
b_mps.py
e_tdvp.py
z_exact_diag.py
xxz_corr_length.py
central_charge_ising.py
mpo_exponential_decay.py
Reference
full name: tenpy.tools.misc.pad
parent module: tenpy.tools.misc
tenpy.tools.misc
type: function
tenpy.tools.misc.
pad
Pad an array along a given axis.
a (ndarray) – the array to be padded
w_l (int) – the width to be padded in the front
v_l (dtype) – the value to be inserted before a
w_r (int) – the width to be padded after the last index
v_r (dtype) – the value to be inserted after a
axis (int) – the axis along which to pad
padded – a copy of a with enlarged axis, padded with the given values.
ndarray