scipy.sparse.csr_matrix.check_format

csr_matrix.check_format(full_check=True)[源代码]

检查矩阵格式是否有效

参数
full_check布尔值,可选

如果 True ,严格检查,O(N)运算。否则基本检查,O(1)操作(默认为真)。