PlasmaCalcs.quantities.patterns.vector_arithmetic.magnitude

PlasmaCalcs.quantities.patterns.vector_arithmetic.magnitude(A, *, squared=False)
return vector magnitude of A, assuming vector components along the dimension ‘component’.
squared: bool, default False
if True, return |A|**2 instead of |A|.
[EFF] to get |A|**2, when |A| is not needed,
magnitude(A, squared=True) is more efficient than magnitude(A)**2