sparse.tests.test_construct

test sparse matrix construction functions

Module Contents

Functions

_sprandn(m,n,density=0.01,format=”coo”,dtype=None,random_state=None)
_sprandn(m, n, density=0.01, format="coo", dtype=None, random_state=None)
class TestConstructUtils
test_spdiags()
test_diags()
test_diags_default()
test_diags_default_bad()
test_diags_bad()
test_diags_vs_diag()
test_diags_dtype()
test_diags_one_diagonal()
test_diags_empty()
test_identity()
test_eye()
test_eye_one()
test_kron()
test_kronsum()
test_vstack()
test_hstack()
test_bmat()
test_concatenate_int32_overflow()

test for indptr overflow when concatenating matrices

test_block_diag_basic()

basic test for block_diag

test_block_diag_scalar_1d_args()

block_diag with scalar and 1d arguments

test_block_diag_1()

block_diag with one matrix

test_random_sampling()
test_rand()
test_randn()
test_random_accept_str_dtype()