sparse.tests.test_sparsetools

Module Contents

Classes

TestInt32Overflow() Some of the sparsetools routines use dense 2D matrices whose

Functions

test_exception()
test_threads()
test_regression_std_vector_dtypes()
test_csr_matmat_int64_overflow()
test_upcast()
test_endianness()
test_exception()
test_threads()
test_regression_std_vector_dtypes()
class TestInt32Overflow

Some of the sparsetools routines use dense 2D matrices whose total size is not bounded by the nnz of the sparse matrix. These routines used to suffer from int32 wraparounds; here, we try to check that the wraparounds don’t occur any more.

setup_method()
teardown_method()
test_coo_todense()
test_matvecs()
test_dia_matvec()
test_bsr_1_block(op)
test_bsr_n_block(op)
_check_bsr_matvecs(m)
_check_bsr_matvec(m)
_check_bsr_diagonal(m)
_check_bsr_sort_indices(m)
_check_bsr_transpose(m)
_check_bsr_matmat(m)
test_csr_matmat_int64_overflow()
test_upcast()
test_endianness()