dubfi.tests.test_linalg_csc

Test CSC sparse linear algebra routines.

Added in version 0.1.0: (initial release)

Functions

test_csc_trace([n, size])

Test dubfi.linalg.csc_sparse._csc_trace().

test_tr_asolver_bcscr([n, size])

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

test_csc_rapply()

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

csc_rapply_tester(csc_apply, csc_rapply[, n, size])

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

test_vector([n])

Test basic MPI vector functionality.

test_matrix([n])

Test basic MPI-parallelized linear algebra.

test_csc_csr_trace_prod([n, fill])

Test _csc_csr_trace_prod().

test_rsparse_derivatives(**kwargs)

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

rsparse_derivatives_tester(r_csc, rgrad_csc, rhess_csc)

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=20, size=500)

Test dubfi.linalg.csc_sparse._csc_trace().

Parameters:
  • n (int)

  • size (int)

Return type:

None

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

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

Parameters:
  • n (int)

  • size (int)

Return type:

None

dubfi.tests.test_linalg_csc.test_csc_rapply()

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

Return type:

None

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

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

Parameters:
  • n (int)

  • size (int)

Return type:

None

dubfi.tests.test_linalg_csc.test_vector(n=100)

Test basic MPI vector functionality.

Parameters:

n (int)

Return type:

None

dubfi.tests.test_linalg_csc.test_matrix(n=200)

Test basic MPI-parallelized linear algebra.

Parameters:

n (int)

Return type:

None

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)

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

Return type:

None

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

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

Return type:

None