dubfi.tests.test_linalg_csc

Test CSC sparse linear algebra routines.

Added in version 0.1.0: (initial release)

Functions

test_csc_trace(→ None)

Test dubfi.linalg.csc_sparse._csc_trace().

test_tr_asolver_bcscr(→ None)

Test dubfi.linalg.csc_sparse.tr_asolver_bcsc() and dubfi.linalg.csc_sparse.tr_asolver_bcsr().

test_csc_rapply(→ None)

Test dubfi.linalg.csc_sparse._csc_rapply() and dubfi.linalg.csc_sparse._csc_apply().

csc_rapply_tester(→ None)

Wrap tests for dubfi.linalg.csc_sparse._csc_rapply() and dubfi.linalg.csc_sparse._csc_apply().

test_vector(→ None)

Test basic vector functionality.

test_matrix(→ None)

Test basic linear algebra.

test_csc_csr_trace_prod([n, fill])

Test _csc_csr_trace_prod().

test_rsparse_derivatives(→ None)

Test agreement of _r_csc_from_ens(), _rgrad_csc_from_ens() and _rhess_csc_from_ens().

rsparse_derivatives_tester(→ None)

Wrap tests of agreement of _r_csc_from_ens(), _rgrad_csc_from_ens() and _rhess_csc_from_ens().

Module Contents

dubfi.tests.test_linalg_csc.test_csc_trace(n: int = 20, size: int = 500) None

Test dubfi.linalg.csc_sparse._csc_trace().

dubfi.tests.test_linalg_csc.test_tr_asolver_bcscr(n: int = 10, size: int = 100) None

Test dubfi.linalg.csc_sparse.tr_asolver_bcsc() and dubfi.linalg.csc_sparse.tr_asolver_bcsr().

dubfi.tests.test_linalg_csc.test_csc_rapply() None

Test dubfi.linalg.csc_sparse._csc_rapply() and dubfi.linalg.csc_sparse._csc_apply().

dubfi.tests.test_linalg_csc.csc_rapply_tester(csc_apply, csc_rapply, n: int = 10, size: int = 100) None

Wrap tests for dubfi.linalg.csc_sparse._csc_rapply() and dubfi.linalg.csc_sparse._csc_apply().

dubfi.tests.test_linalg_csc.test_vector(n: int = 100) None

Test basic vector functionality.

dubfi.tests.test_linalg_csc.test_matrix(n: int = 200) None

Test basic linear algebra.

dubfi.tests.test_linalg_csc.test_csc_csr_trace_prod(n=500, fill=100)

Test _csc_csr_trace_prod().

dubfi.tests.test_linalg_csc.test_rsparse_derivatives(**kwargs) None

Test agreement of _r_csc_from_ens(), _rgrad_csc_from_ens() and _rhess_csc_from_ens().

dubfi.tests.test_linalg_csc.rsparse_derivatives_tester(r_csc, rgrad_csc, rhess_csc, n=47, k=17, m=13, **kwargs) None

Wrap tests of agreement of _r_csc_from_ens(), _rgrad_csc_from_ens() and _rhess_csc_from_ens().