N-dimensional convolution of matrices a and b.
The size of the output is determined by the shape argument. This can be any of the following character strings:
- "full"
- The full convolution result is returned. The size out of the output is
size (
a) + size (
b)-1
. This is the default behaviour.- "same"
- The central part of the convolution result is returned. The size out of the output is the same as a.
- "valid"
- The valid part of the convolution is returned. The size of the result is
max (size (
a) - size (
b)+1, 0)
.