pydsm.delsig.padt¶
-
pydsm.delsig.
padt
(x, n, val=0)¶ Pad a matrix or a vector on the top.
- Parameters
- xndarray
matrix or vector to be padded (must be 1D or 2D)
- nint
row height to pad x to
- valnumber, optional
fill value for padding. Defaults to 0.
- Returns
- yndarray
matrix or vector x, padded to the top to have n rows. Padding value is val.
Notes
If x is an array rather than a matrix, then an array is returned, padded at its beginning. Namely, the array is interpreted as a column vector.