module GCD

Extended Modules

Defined in:

math/gcd.cr

Instance Method Summary

Instance Method Detail

def convolution(f : Array(T), g : Array(T)) forall T #

result[n] = Sum_{gcd(i, j) = n} f[i] * g[j]


[View source]