linalg:pad
(linalg:pad array pads)
Zero padding (numpy's np.pad in its default constant mode): returns a fresh array with array copied into the interior and 0.0 everywhere else. pads is a list of (before after) pairs, one per axis -- or a single non-negative integer applied to both sides of every axis. The result keeps the input's element width (a #f array pads to #f).