afp_norm

Find the norm of the input matrix. This function can return the norm using various metrics based on the type paramter.

Arguments

  1. Input matrix
  2. Type, integer or string value: 0/'sumabs'/'SUMABS' - sum of absolute values, 1/'maxabs'/'MAXABS' - max of absolute values, 2/'euclid'/'EUCLID' - euclidean norm, 3/'colsum'/'COLSUM' - max of column sums, 4/'rowsum'/'ROWSUM' - max of row sums

Output

Double value

Examples

afp_norm