Namespaces
Variants
Views
Actions

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) [edit]
returns the complex conjugate
(function template) [edit]
constructs a complex number from magnitude and phase angle
(function template) [edit]