convolve2

For example, if the signal is two dimensional with m & n as sizes along the 0th & 1st dimensions respectively, then the possible batch operations are as follows.

Input Signal Dimensions Filter Signal Dimensions Batch Mode Explanation
[m n 1 1] [m n 1 1] One to One Output will be a single convolve array
[m n 1 1] [m n p 1] One to Many Output will be 3d array with 2nd dimension length as p - p filters applied to same input
[m n p 1] [m n 1 1] Many to One Output will be 3d array with 2nd dimension length as p - 1 filter applied to p inputs
[m n p 1] [m n p 1] Many to ManyOutput will be 3d array with 2nd dimension length as p - p filter applied to p inputs in one-to-one correspondence