You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent behaviour of numpy.real and numpy.imag functions #8386
The numpy.real and numpy.imag functions show what is IMHO inconsistent behaviour compared to other numpy functions - when they are given a a single value as parameter (as opposed to array) they return an array instead of a single value. Compare this to the behaviour of numpy.angle, numpy.conj, numpy.sin, etc. functions which return a scalar when given a scalar. Example code:
Activity