convolution windows length.
one dimensional convolution function with params arity.
dimensions to perform lazy convolution along. Negative dimensions are supported.
auto data = [4, 5].iota; alias scaled = a => a * 0.25; auto v = data.slideAlong!(3, "a + 2 * b + c", 0).map!scaled; auto h = data.slideAlong!(3, "a + 2 * b + c", 1).map!scaled; assert(v == [4, 5].iota[1 .. $ - 1, 0 .. $]); assert(h == [4, 5].iota[0 .. $, 1 .. $ - 1]);
Lazy convolution for tensors.
Suitable for advanced convolution algorithms.