This function is useful to pad a matrix so that the dimension is a factor of 2.

pad_mat(x, n, m)

Arguments

x

a matrix

n

the desired number of rows of x

m

the desired number of columns of x

Value

a padded version of x with dimension n,m