psychopy_ext.models.HMAX.addZeros

HMAX.addZeros(matrix, numZeros)[source]

Pads matrix with zeros

Parameters
matrix: numpy.array
A 2D numpy array to be padded
numZeros: int
Number of rows and colums of zeros to pad
Returns
matrix_new: numpy.array
A zero-padded 2D numpy array