This is known as a convolutional operation which is repeated over the entire input matrix.