Am 20. September 2023 09:07:18 MESZ schrieb Alexandros Drymonitis adrcki@gmail.com:
Both of you were right. The 2 wasn't necessary, and indeed, I forgot to multiply by the element type.
Actually I assumed that "2" was meant to be the element size, and thus plain wrong (it would be "4" on single precision and "8" on double). So yes, use `sizeof(t_sample)`
mfg.sfg.jfd IOhannes