Skip to content

conv2

builtin · libnexusinterp/corefcn/conv2-proprietary.cc

: C = conv2 (A, B)
: C = conv2 (A, B, shape)
: C = conv2 (v1, v2, M)
: C = conv2 (v1, v2, M, shape)

Two-dimensional convolution of the matrices A and B.

shape is one of "full" (default, size size (A) + size (B) - 1), "same" (the central part, the size of A) or "valid" (only the part computed without zero padding).

With three vector/matrix arguments, conv2 (v1, v2, M) convolves the columns of M with v1 and its rows with v2.