nrm#
- Mapdl.nrm(name='', normtype='', parr='', normalize='', **kwargs)#
Computes the norm of the specified matrix or vector.
APDL Command:
*NRM- Parameters:
- name
Matrix or vector for which the norm will be computed. This can be a dense matrix (created by the
*DMATcommand), a sparse matrix (created by the*SMATcommand) or a vector (created by the*VECcommand)- normtype
Mathematical norm to use:
L2 (Euclidean or SRSS) norm (default).
L1 (absolute sum) norm (vectors only).
- parr
Parameter name that contains the result.
- normalize
Normalization key; to be used only for vectors created by
*VEC:Normalize the vector such that the norm is 1.0. - Do not normalize the vector (default).
Notes
The NRM2 option corresponds to the Euclidean or L2 norm and is applicable to either vectors or matrices. The NRM1 option corresponds to the L1 norm and is applicable to vectors only. The NRMINF option is the maximum norm and is applicable to either vectors or matrices.