Template Function librapid::norm(const Complex<T>&)#

Function Documentation#

template<typename T>
T librapid::norm(const Complex<T> &other)#

Calculate the magnitude squared of a complex number.

Template Parameters

T – Scalar type

Parameters

otherComplex number

Returns

\( |z|^2 \)