[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

[Numpy-discussion] Newcomer's Meeting tomorrow!

2021-05-19 Thread Melissa Mendonça
Hi all! Tomorrow,* May 20, at 8pm UTC* we have a Newcomer's Meeting! This is an informal meeting with no agenda to ask questions, get to know other people and (hopefully) figure out ways to contribute to NumPy. Feel free to join if you are lurking around but found it hard to start contributing -

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

2021-05-19 Thread ZinGer_KyoN
I have similar needs, but for int array and integer interval (like -32768~32767), currently I'm using bitwise and/or (&/|) to do this trick. It will be nice if there is an optimized function, both for float and int -- Sent from: http://numpy-discussion.10968.n7.nabble.com/ _