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

Thomas Hilger thomas.hilger at gmail.com
Thu May 20 13:30:36 EDT 2021


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 <zinger.kyon at gmail.com
>:

> 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/
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20210520/aeb903cb/attachment.html>


More information about the NumPy-Discussion mailing list