dubfi.tests.test_linalg_csc =========================== .. py:module:: dubfi.tests.test_linalg_csc .. autoapi-nested-parse:: Test CSC sparse linear algebra routines. .. codeauthor:: Valentin Bruch, DWD .. versionadded:: 0.1.0 (initial release) Functions --------- .. autoapisummary:: dubfi.tests.test_linalg_csc.test_csc_trace dubfi.tests.test_linalg_csc.test_tr_asolver_bcscr dubfi.tests.test_linalg_csc.test_csc_rapply dubfi.tests.test_linalg_csc.csc_rapply_tester dubfi.tests.test_linalg_csc.test_vector dubfi.tests.test_linalg_csc.test_matrix dubfi.tests.test_linalg_csc.test_csc_csr_trace_prod dubfi.tests.test_linalg_csc.test_rsparse_derivatives dubfi.tests.test_linalg_csc.rsparse_derivatives_tester Module Contents --------------- .. py:function:: test_csc_trace(n = 20, size = 500) Test :func:`dubfi.linalg.csc_sparse._csc_trace`. .. py:function:: test_tr_asolver_bcscr(n = 10, size = 100) Test :func:`dubfi.linalg.csc_sparse.tr_asolver_bcsc` and :func:`dubfi.linalg.csc_sparse.tr_asolver_bcsr`. .. py:function:: test_csc_rapply() Test :func:`dubfi.linalg.csc_sparse._csc_rapply` and :func:`dubfi.linalg.csc_sparse._csc_apply`. .. py:function:: csc_rapply_tester(csc_apply, csc_rapply, n = 10, size = 100) Wrap tests for :func:`dubfi.linalg.csc_sparse._csc_rapply` and :func:`dubfi.linalg.csc_sparse._csc_apply`. .. py:function:: test_vector(n = 100) Test basic MPI vector functionality. .. py:function:: test_matrix(n = 200) Test basic MPI-parallelized linear algebra. .. py:function:: test_csc_csr_trace_prod(n=500, fill=100) Test :func:`_csc_csr_trace_prod`. .. py:function:: test_rsparse_derivatives(**kwargs) Test agreement of :func:`_r_csc_from_ens`, :func:`_rgrad_csc_from_ens` and :func:`_rhess_csc_from_ens`. .. py:function:: rsparse_derivatives_tester(r_csc, rgrad_csc, rhess_csc, n=47, k=17, m=13, **kwargs) Wrap tests of agreement of :func:`_r_csc_from_ens`, :func:`_rgrad_csc_from_ens` and :func:`_rhess_csc_from_ens`.