std::norm(std::complex)
From cppreference.com
                    
                                        
                    
                    
                                                            
                    | Defined in header <complex>
  | ||
| template< class T >  T norm( const complex<T>& z ); | ||
Returns the squared magnitude of the complex number z.
[edit] Parameters
| z | - | complex value | 
[edit] Return value
the squared magnitude of z
[edit] See also
| returns the magnitude of a complex number (function template) | |
| returns the complex conjugate (function template) | |
| constructs a complex number from magnitude and phase angle (function template) | |