Switching signal from padded array to padded matrix