I am trying to use the `clip` method to transform floats to integers with
clipping. I was expecting to be able to do both the clipping and the type
conversion at once, passing the `dtype` parameter to `clip`, together with a
suitable `casting` param. Such expectation came from reading the documentation
of the `dtype` param for u-funcs that states that this parameter "Overrides the
DType of the output arrays". Unfortunately, using the `dtype` parameter with
`clip` causes the type conversion to be practiced before the clipping, not
after it. Is this how it is expected to operate?
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com