PADIT Function
Pads an array with variable thickness.
Usage
c = PADIT( a[, b] )
Input Parameters
a — An n-dimensional array.
b — (optional) A scalar with which to pad the array; if b is omitted then each pad layer is a copy of its underlying layer.
Returned Value
c — The padded version of parameter a.
Keywords
t — An n-by-2 array of integers: t(m,0) and t(m,1) are bottom and top pad thicknesses for dimension m of a. Default: pad each side with one layer.
Example
a = INDGEN(2, 3)
PM, a
; PV-WAVE prints:
; 0       2       4
; 1       3       5
PM, PADIT(a)
; PV-WAVE prints:
; 0       0       2       4       4
; 0       0       2       4       4
; 1       1       3       5       5
; 1       1       3       5       5
PM, PADIT(a, 6)
; PV-WAVE prints:
; 6       6       6       6       6
; 6       0       2       4       6
; 6       1       3       5       6
; 6       6       6       6       6
See Also