norm

MapdlMath.norm(obj, order='nrm2')

Matrix or vector norm.

Parameters
objansys.mapdl.math.AnsMat or ansys.mapdl.math.AnsVec

ApdlMath object to compute the norm from.

orderstr

Mathematical norm to use. One of:

  • 'NRM2': L2 (Euclidean or SRSS) norm (default).

  • 'NRM1': L1 (absolute sum) norm (vectors only).

  • 'NRMINF' Maximum norm.

nrmfloat

Norm of the matrix or vector(s).

Examples

Compute the norm of a APDLMath vector. v = mm.ones(10) 3.1622776601683795