pydsm.delsig.padr

pydsm.delsig.padr(x, n, val=0)

Pad a matrix or a vector x on the right.

Parameters
xndarray

matrix or vector to be padded (must be 1D or 2D)

nint

(column) length to pad x to

valscalar, optional

fill value for padding. Defaults to 0.

Returns
yndarray

matrix or vector x, padded to the right to have n entries (if 1D) or n columns (if 2D). Padding value is val.

Notes

If x is an array rather than a matrix, then an array is returned, padded at its end. Namely, the array is interpreted as a row vector.