Function magnitude

Compute the magnitude of a vector. This is not to be confused with length which gives the number of components.

T magnitude(T, ulong N) (
  in Vec!(T,N) v
) pure nothrow @nogc @safe;