bsparse.sparse.COO.diagonal#

sparse.COO.diagonal(offset=0)#

Returns the diagonal of the matrix.