linalg.tests.test_basic

Test functions for linalg.basic module

Module Contents

Functions

_eps_cast(dtyp) Get the epsilon for dtype, possibly downcast to BLAS types.
direct_lstsq(a,b,cmplx=0)
_eps_cast(dtyp)

Get the epsilon for dtype, possibly downcast to BLAS types.

class TestSolveBanded
test_real()
test_complex()
test_tridiag_real()
test_tridiag_complex()
test_check_finite()
test_bad_shape()
test_1x1()
test_native_list_arguments()
class TestSolveHBanded
test_01_upper()
test_02_upper()
test_03_upper()
test_01_lower()
test_02_lower()
test_01_float32()
test_02_float32()
test_01_complex()
test_02_complex()
test_tridiag_01_upper()
test_tridiag_02_upper()
test_tridiag_03_upper()
test_tridiag_01_lower()
test_tridiag_02_lower()
test_tridiag_01_float32()
test_tridiag_02_float32()
test_tridiag_01_complex()
test_tridiag_02_complex()
test_check_finite()
test_bad_shapes()
test_1x1()
test_native_list_arguments()
class TestSolve
setup_method()
test_20Feb04_bug()
test_simple()
test_simple_sym()
test_simple_sym_complex()
test_simple_complex()
test_nils_20Feb04()
test_random()
test_random_complex()
test_random_sym()
test_random_sym_complex()
test_check_finite()
test_scalar_a_and_1D_b()
test_simple2()
test_simple_complex2()
test_hermitian()
test_pos_and_sym()
test_singularity()
test_ill_condition_warning()
test_empty_rhs()
test_multiple_rhs()
test_transposed_keyword()
test_transposed_notimplemented()
test_nonsquare_a()
test_size_mismatch_with_1D_b()
test_assume_a_keyword()
test_all_type_size_routine_combinations()
class TestSolveTriangular
test_simple()

solve_triangular on a simple 2x2 matrix.

test_simple_complex()

solve_triangular on a simple 2x2 complex matrix

test_check_finite()

solve_triangular on a simple 2x2 matrix.

class TestInv
setup_method()
test_simple()
test_random()
test_simple_complex()
test_random_complex()
test_check_finite()
class TestDet
setup_method()
test_simple()
test_simple_complex()
test_random()
test_random_complex()
test_check_finite()
direct_lstsq(a, b, cmplx=0)
class TestLstsq
setup_method()
test_simple_exact()
test_simple_overdet()
test_simple_overdet_complex()
test_simple_underdet()
test_random_exact()
test_random_complex_exact()
test_random_overdet()
test_random_complex_overdet()
test_check_finite()
test_zero_size()
class TestPinv
test_simple_real()
test_simple_complex()
test_simple_singular()
test_simple_cols()
test_simple_rows()
test_check_finite()
test_native_list_argument()
class TestPinvSymmetric
test_simple_real()
test_nonpositive()
test_simple_complex()
test_native_list_argument()
class TestVectorNorms
test_types()
test_overflow()
test_stable()
test_zero_norm()
test_axis_kwd()
test_keepdims_kwd()
class TestMatrixNorms
test_matrix_norms()
test_axis_kwd()
test_keepdims_kwd()
class TestOverwrite
test_solve()
test_solve_triangular()
test_solve_banded()
test_solveh_banded()
test_inv()
test_det()
test_lstsq()
test_pinv()
test_pinv2()
test_pinvh()
class TestSolveCirculant
test_basic1()
test_basic2()
test_basic3()
test_complex()
test_random_b_and_c()
test_singular()
test_axis_args()
test_native_list_arguments()
class TestMatrix_Balance
test_string_arg()
test_infnan_arg()
test_scaling()
test_scaling_order()
test_separate()
test_permutation()
test_perm_and_scaling()