windowing function helper for float32arrays