With axis = NULL, p = 1, 2 and Inf are the
matrix norms, as in CVXPY and base R norm(): the maximum absolute
column sum, the largest singular value (sigma_max) and the
maximum absolute row sum. A row vector is a 1 x n matrix, so its 1-norm is
its largest absolute entry and its Inf-norm the sum of absolute entries.
For a column vector these equal the entrywise norms. Any other p is
an error for a matrix or row vector, as in CVXPY ("Unsupported matrix
norm."); use p_norm for the entrywise p-norm. On a column
vector, and with an axis, it is the entrywise norm. The masking
norm() gives the same results under base R's type names.
