Skip to contents

Attempts are made to make this padding efficient by employing sparse graphs

Usage

pad(m, nr, nc = nr)

Arguments

m

matrix

nr

number of rows to add

nc

number of columns to add. (default = nr)

Value

m padded with nr rows and nc columns of zeros.