Author kolibril13
Recipients kolibril13
Date 2019-07-25.06:41:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564036874.95.0.313936205307.issue37676@roundup.psfhosted.org>
In-reply-to
Content
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 z_row in z_col] for z_col in z ])

amp_array=  get_k_amp_array(z)
ph_array=   get_k_ph_array(z)

print(amp_array)
print(ph_array)
```
History
Date User Action Args
2019-07-25 06:41:14kolibril13setrecipients: + kolibril13
2019-07-25 06:41:14kolibril13setmessageid: <1564036874.95.0.313936205307.issue37676@roundup.psfhosted.org>
2019-07-25 06:41:14kolibril13linkissue37676 messages
2019-07-25 06:41:14kolibril13create