Re: Extend ldexp to handle complex inputs

Sept. 27, 2024
4:10 a.m.
‘np.ldexp’ exists mainly for compatibility with the C/C++ functions ldexp, ldexpf, ldexpl, which are defined for float/double/long double. Quoting the C refs:
So in general I do not think that extending ‘np.ldexp’ to complex makes much sense, since it would be peculiar to numpy implementation and destroy the C/C++ equivalence. Stefano
168
Age (days ago)
168
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stefano Miccoli