norm

fnT norm(T)(Complex!T z) @safe pure nothrow @nogc

Extracts the norm of a complex number.

Parameters

zA complex number

Returns

The squared magnitude of z.