[issue37676] cmath.phase array support

2019-07-26 Thread Mark Dickinson
Mark Dickinson added the comment: I think you want numpy.angle (https://docs.scipy.org/doc/numpy/reference/generated/numpy.angle.html). NumPy is a third-party library, so it doesn't make sense to have the math or cmath functions be aware of NumPy arrays; none of the other math or cmath func

[issue37676] cmath.phase array support

2019-07-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bu

[issue37676] cmath.phase array support

2019-07-24 Thread Hendrik
New submission from Hendrik : It would be nice if cmath.phase supports arrays like this: ``` import cmath import numpy as np z=255*np.ones((3,3)) * np.exp(1j * np.pi*np.ones((3,3))) def get_k_amp_array(z): return abs(z) def get_k_ph_array(z): return np.array([[cmath.phase(z_row) for