sparse.linalg.eigen.arpack.tests.test_arpack

Module Contents

Functions

_get_test_tolerance(type_char,mattype=None) Return tolerance values suitable for a given test:
generate_matrix(N,complex=False,hermitian=False,pos_definite=False,sparse=False)
_aslinearoperator_with_dtype(m)
assert_allclose_cc(actual,desired,**kw) Almost equal or complex conjugates almost equal
argsort_which(eval,typ,k,which,sigma=None,OPpart=None,mode=None) Return sorted indices of eigenvalues using the “which” keyword
eval_evec(symmetric,d,typ,k,which,v0=None,sigma=None,mattype=None,OPpart=None,mode=”normal”)
test_symmetric_modes()
test_hermitian_modes()
test_symmetric_starting_vector()
test_symmetric_no_convergence()
test_real_nonsymmetric_modes()
test_complex_nonsymmetric_modes()
test_standard_nonsymmetric_starting_vector()
test_general_nonsymmetric_starting_vector()
test_standard_nonsymmetric_no_convergence()
test_eigen_bad_shapes()
test_eigen_bad_kwargs()
test_ticket_1459_arpack_crash()
sorted_svd(m,k,which=”LM”)
svd_estimate(u,s,vh)
svd_test_input_check()
test_svd_simple_real()
test_svd_simple_complex()
test_svd_maxiter()
test_svd_return()
test_svd_which()
test_svd_v0()
_check_svds(A,k,U,s,VH)
test_svd_LM_ones_matrix()
test_svd_LM_zeros_matrix()
test_svd_LM_zeros_matrix_gh_3452()
test_svd_linop()
test_linearoperator_deallocation()
test_svds_partial_return()
test_svds_wrong_eigen_type()
test_parallel_threads()
test_reentering()
test_regression_arpackng_1315()
_get_test_tolerance(type_char, mattype=None)

Return tolerance values suitable for a given test:

type_char : {‘f’, ‘d’, ‘F’, ‘D’}
Data type in ARPACK eigenvalue problem
mattype : {csr_matrix, aslinearoperator, asarray}, optional
Linear operator type
tol
Tolerance to pass to the ARPACK routine
rtol
Relative tolerance for outputs
atol
Absolute tolerance for outputs
generate_matrix(N, complex=False, hermitian=False, pos_definite=False, sparse=False)
_aslinearoperator_with_dtype(m)
assert_allclose_cc(actual, desired, **kw)

Almost equal or complex conjugates almost equal

argsort_which(eval, typ, k, which, sigma=None, OPpart=None, mode=None)

Return sorted indices of eigenvalues using the “which” keyword from eigs and eigsh

eval_evec(symmetric, d, typ, k, which, v0=None, sigma=None, mattype=None, OPpart=None, mode="normal")
class DictWithRepr(name)
__init__(name)
__repr__()
class SymmetricParams
__init__()
class NonSymmetricParams
__init__()
test_symmetric_modes()
test_hermitian_modes()
test_symmetric_starting_vector()
test_symmetric_no_convergence()
test_real_nonsymmetric_modes()
test_complex_nonsymmetric_modes()
test_standard_nonsymmetric_starting_vector()
test_general_nonsymmetric_starting_vector()
test_standard_nonsymmetric_no_convergence()
test_eigen_bad_shapes()
test_eigen_bad_kwargs()
test_ticket_1459_arpack_crash()
sorted_svd(m, k, which="LM")
svd_estimate(u, s, vh)
svd_test_input_check()
test_svd_simple_real()
test_svd_simple_complex()
test_svd_maxiter()
test_svd_return()
test_svd_which()
test_svd_v0()
_check_svds(A, k, U, s, VH)
test_svd_LM_ones_matrix()
test_svd_LM_zeros_matrix()
test_svd_LM_zeros_matrix_gh_3452()
class CheckingLinearOperator(A)
__init__(A)
_matvec(x)
_rmatvec(x)
test_svd_linop()
test_linearoperator_deallocation()
test_svds_partial_return()
test_svds_wrong_eigen_type()
test_parallel_threads()
test_reentering()
test_regression_arpackng_1315()