Function patch_operation

Performs a point-wise operation with two unequal matrices

Performs a point-wise operation (e.g. assignment, arithmetic) between two matrices that are not of the same size with a given offset. The result has the size of the first matrix and the outlying elements are left intact.

Input:

Output: