pygsti.tools.matrixtools.sparse_onenorm

Contents

pygsti.tools.matrixtools.sparse_onenorm#

sparse_onenorm(a)#

Computes the 1-norm of the scipy sparse matrix a.

Parameters:

a (scipy sparse matrix) – The matrix or vector to take the norm of.

Return type:

float