Error C2668: 'max': chiamata ambigua a funzione in overload
error C2668: 'min': chiamata ambigua a funzione in overload
template<class Type> sequenze<Type>& sequenze<Type>::conv(vector<double> h)
{
int N = h.size() - 1;
vector<Type> y(size + N,0.0);
int m;
for (int n = 0; n < size+N; n++)
for (y[n] = 0, m = max(0, n-size+1); m <= min(n,N); m++)
y[n] += h[m] * x[n-m];
size = size + N;
x = vector<Type>(size,0.0);
x = y;
return *this;
}