SciPy

scipy.sparse.bsr_matrix.check_format

bsr_matrix.check_format(full_check=True)[source]

check whether the matrix format is valid

Parameters:
full_check:
True - rigorous check, O(N) operations : default False - basic check, O(1) operations