linalg.tests.test_special_matrices

Tests for functions in special_matrices.py.

Module Contents

Functions

get_mat(n)
test_invpascal()
test_dft()
get_mat(n)
class TestTri
test_basic()
test_diag()
test_2d()
test_diag2d()
class TestTril
test_basic()
test_diag()
class TestTriu
test_basic()
test_diag()
class TestToeplitz
test_basic()
test_complex_01()
test_scalar_00()

Scalar arguments still produce a 2D array.

test_scalar_01()
test_scalar_02()
test_scalar_03()
test_scalar_04()
class TestHankel
test_basic()
class TestCirculant
test_basic()
class TestHadamard
test_basic()
class TestLeslie
test_bad_shapes()
test_basic()
class TestCompanion
test_bad_shapes()
test_basic()
class TestBlockDiag
test_basic()
test_dtype()
test_mixed_dtypes()
test_scalar_and_1d_args()
test_bad_arg()
test_no_args()
test_empty_matrix_arg()
test_zerosized_matrix_arg()
class TestKron
test_basic()
class TestHelmert
test_orthogonality()
test_subspace()
class TestHilbert
test_basic()
class TestInvHilbert
test_basic()
test_inverse()
class TestPascal
check_case(n, sym, low)
test_cases()
test_big()
test_threshold()
test_invpascal()
test_dft()