fabs

Overload for cdouble, cfloat and creal

  1. T fabs(T val)
  2. T fabs(T x)
  3. T fabs(T x)
  4. T fabs(T x)
  5. auto fabs(T x)
    fabs
    (
    T
    )
    (
    in T x
    )
    if (
    isComplex!T
    )

Examples

import mir.complex;
assert(fabs(Complex!double(3, 4)) == 25);

Meta