linalg.tests.test_matfuncs

Test functions for linalg.matfuncs module

Module Contents

Functions

_get_al_mohy_higham_2012_experiment_1() Return the test matrix from Experiment (1) of [1].
_help_expm_cond_search(A,A_norm,X,X_norm,eps,p)
_normalized_like(A,B)
_relative_error(f,A,perturbation)
_get_al_mohy_higham_2012_experiment_1()

Return the test matrix from Experiment (1) of [1].

[1](1, 2) Awad H. Al-Mohy and Nicholas J. Higham (2012) “Improved Inverse Scaling and Squaring Algorithms for the Matrix Logarithm.” SIAM Journal on Scientific Computing, 34 (4). C152-C169. ISSN 1095-7197
class TestSignM
test_nils()
test_defective1()
test_defective2()
test_defective3()
class TestLogM
test_nils()
test_al_mohy_higham_2012_experiment_1_logm()
test_al_mohy_higham_2012_experiment_1_funm_log()
test_round_trip_random_float()
test_round_trip_random_complex()
test_logm_type_preservation_and_conversion()
test_complex_spectrum_real_logm()
test_real_mixed_sign_spectrum()
test_exactly_singular()
test_nearly_singular()
test_opposite_sign_complex_eigenvalues()
class TestSqrtM
test_round_trip_random_float()
test_round_trip_random_complex()
test_bad()
test_sqrtm_type_preservation_and_conversion()
test_sqrtm_type_conversion_mixed_sign_or_complex_spectrum()
test_blocksizes()
test_al_mohy_higham_2012_experiment_1()
test_strict_upper_triangular()
test_weird_matrix()
test_disp()
test_opposite_sign_complex_eigenvalues()
class TestFractionalMatrixPower
test_round_trip_random_complex()
test_round_trip_random_float()
test_larger_abs_fractional_matrix_powers()
test_random_matrices_and_powers()
test_al_mohy_higham_2012_experiment_1()
test_briggs_helper_function()
test_type_preservation_and_conversion()
test_type_conversion_mixed_sign_or_complex_spectrum()
test_singular()
test_opposite_sign_complex_eigenvalues()
class TestExpM
test_zero()
test_single_elt()
class TestExpmFrechet
test_expm_frechet()
test_small_norm_expm_frechet()
test_fuzz()
test_problematic_matrix()
test_medium_matrix()
_normalized_like(A, B)
_relative_error(f, A, perturbation)
class TestExpmConditionNumber
test_expm_cond_smoke()
test_expm_bad_condition_number()
test_univariate()
test_expm_cond_fuzz()