pygsti.tools.matrixtools.column_norms#
- column_norms(m, ord=None)#
Compute the norms of the columns of a matrix.
- Parameters:
m (numpy.ndarray or scipy sparse matrix) – The matrix.
ord (int or list of ints, optional) – The order of the norm. See
numpy.linalg.norm(). An array of orders can be given to specify the norm on a per-column basis.
- Returns:
A 1-dimensional array of the column norms (length is number of columns of m).
- Return type:
numpy.ndarray