ptypy.utils.math_utils.cabs2#

ptypy.utils.math_utils.cabs2(A)#

Squared absolute value for an array A. If A is complex, the returned value is complex as well, with the imaginary part of zero.