diff --git a/cwVectOps.h b/cwVectOps.h index ddd9123..22f5e72 100644 --- a/cwVectOps.h +++ b/cwVectOps.h @@ -456,8 +456,8 @@ namespace cw - template< typename T > - unsigned phasor( T* y, unsigned n, T srate, T hz, unsigned init_idx=0 ) + template< typename T0, typename T1, typename T2 > + unsigned phasor( T0* y, unsigned n, T1 srate, T2 hz, unsigned init_idx=0 ) { for(unsigned i=init_idx; i - unsigned sine( T* y, unsigned n, T srate, T hz, unsigned init_idx=0 ) + template< typename T0, typename T1, typename T2 > + unsigned sine( T0* y, unsigned n, T1 srate, T2 hz, unsigned init_idx=0 ) { init_idx = phasor(y,n,srate,hz,init_idx);