Re: [Numpy-discussion] interval wrapping / remainder / angle normalization

2021-05-20 Thread Thomas Hilger
When I understand correctly and what you desire is equivalent to integer overflowing, the function can indeed be applied as well. I tested. But to be sure, maybe some examples are better. Am Do., 20. Mai 2021 um 03:22 Uhr schrieb ZinGer_KyoN : > I have similar needs, but for int array and integer

[Numpy-discussion] interval wrapping / remainder / angle normalization

2021-05-19 Thread Thomas Hilger
Hi everyone! I was wondering if it is a possible addition to numpy to have a function to wrap values to an interval. Typically, it is desired to limit an angle to [0, 2pi) or [-pi ,pi), either by letting it "overflow" or by "bouncing" hence and forth. The function which does this is actually reall