Function abs

Complex abs

T abs(T) (
  Complex!T x
);

Example

auto c1 = Complex!float(1);
assert(abs(c1) == 1.0f);