kfrlib / kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
https://www.kfrlib.com
GNU General Public License v2.0
1.65k stars 253 forks source link

generators and complex types #106

Closed mipac closed 7 months ago

mipac commented 3 years ago

when using

auto step = kfr::complex(1.f, -1.f);
auto gen = kfr::gen_linear( 0.f, step );
kfr::univector< kfr::complex< float > > v( 4 );

v = gen;

I've got the error:

error: no matching function for call to ‘add(kfr::complex<float>, const kfr::sse2::vec<kfr::complex<float>, 4>&)’
 KFR_VEC_OPERATOR2(+, +=, add)

is it possible to use generators with complex step?

regards

dancazarin commented 7 months ago

Fixed in dev