def maskMatrix(matrix, shape='circle', radius=1.0, center=(0.0, 0.0)):
 alphaMask = makeMask(matrix.shape[0], shape, radius, center=(0.0, 0.0), range=[0, 1])
 return (matrix * alphaMask)

def maskMatrix ( matrix , shape = 'circle' , radius = 1.0 , center = ( 0.0 , 0.0 ) ) : alphaMask = makeMask ( matrix . shape [ 0 ] , shape , radius , center = ( 0.0 , 0.0 ) , range = [ 0 , 1 ] ) return ( matrix * alphaMask )
make and apply a mask to an input matrix .