‘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:
> On binary systems (where FLT_RADIX is 2), ldexp is equivalent to scalbn. > The function ldexp ("load exponent"), together with its dual, frexp, can be > used to manipulate the representation of a floating-point number without > direct bit manipulations. > On many implementations, ldexp is less efficient than multiplication or > division by a power of two using arithmetic operators. 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 _______________________________________________ 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