Open
Description
I've noticed that some of the code like this is redundant now. E.g.
x * np.array(math.log(2.0)).astype(x.dtype)
is now the same asx * math.log(2.0)
because numpy now uses the type ofx
here. For backwards compatibility, maybe we should leave theastype
conversion for now, but once numpy 1.26 support is dropped, this won't be needed.
Originally posted by @brendan-m-murphy in #1194 (comment)
Metadata
Metadata
Assignees
Labels
No labels