test_linalg

Test functions for linalg module

Module Contents

ifthen(a, b)
imply(a, b)
old_assert_almost_equal
assert_almost_equal(a, b, **kw)
get_real_dtype(dtype)
get_complex_dtype(dtype)
get_rtol(dtype)
class LinalgCase(name, a, b, exception_cls=None)

Bases:object

check(self, do)
__repr__(self)
SQUARE_CASES
NONSQUARE_CASES
HERMITIAN_CASES
GENERALIZED_SQUARE_CASES = []
GENERALIZED_NONSQUARE_CASES = []
GENERALIZED_HERMITIAN_CASES = []
a
_stride_comb_iter(x)

Generate cartesian product of strides for all axes

new_cases = []
_check_cases(func, cases)
class LinalgTestCase

Bases:object

test_sq_cases(self)
class LinalgNonsquareTestCase

Bases:object

test_sq_cases(self)
class LinalgGeneralizedTestCase

Bases:object

test_generalized_sq_cases(self)
class LinalgGeneralizedNonsquareTestCase

Bases:object

test_generalized_nonsq_cases(self)
class HermitianTestCase

Bases:object

test_herm_cases(self)
class HermitianGeneralizedTestCase

Bases:object

test_generalized_herm_cases(self)
dot_generalized(a, b)
identity_like_generalized(a)
class TestSolve

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgGeneralizedTestCase

do(self, a, b)
test_types(self)
test_0_size(self)
test_0_size_k(self)
class TestInv

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgGeneralizedTestCase

do(self, a, b)
test_types(self)
test_0_size(self)
class TestEigvals

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgGeneralizedTestCase

do(self, a, b)
test_types(self)
class TestEig

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgGeneralizedTestCase

do(self, a, b)
test_types(self)
class TestSVD

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgGeneralizedTestCase

do(self, a, b)
test_types(self)
class TestCondSVD

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgGeneralizedTestCase

do(self, a, b)
class TestCond2

Bases:test_linalg.LinalgTestCase

do(self, a, b)
class TestCondInf

Bases:object

test(self)
class TestPinv

Bases:test_linalg.LinalgTestCase

do(self, a, b)
class TestDet

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgGeneralizedTestCase

do(self, a, b)
test_zero(self)
test_types(self)
class TestLstsq

Bases:test_linalg.LinalgTestCase, test_linalg.LinalgNonsquareTestCase

do(self, a, b)
class TestMatrixPower

Bases:object

R90
Arb22
noninv
arbfloat
large
t
test_large_power(self)
test_large_power_trailing_zero(self)
testip_zero(self)
testip_one(self)
testip_two(self)
testip_invert(self)
test_invert_noninvertible(self)
class TestBoolPower

Bases:object

test_square(self)
class TestEigvalsh

Bases:test_linalg.HermitianTestCase, test_linalg.HermitianGeneralizedTestCase

do(self, a, b)
test_types(self)
test_invalid(self)
test_UPLO(self)
class TestEigh

Bases:test_linalg.HermitianTestCase, test_linalg.HermitianGeneralizedTestCase

do(self, a, b)
test_types(self)
test_invalid(self)
test_UPLO(self)
class _TestNorm

Bases:object

dt
dec
test_empty(self)
test_vector(self)
test_matrix(self)
test_axis(self)
test_bad_args(self)
test_longdouble_norm(self)
test_intmin(self)
test_complex_high_ord(self)
class TestNormDouble

Bases:test_linalg._TestNorm

dt
dec = 12
class TestNormSingle

Bases:test_linalg._TestNorm

dt
dec = 6
class TestNormInt64

Bases:test_linalg._TestNorm

dt
dec = 12
class TestMatrixRank

Bases:object

test_matrix_rank(self)
test_reduced_rank()
class TestQR

Bases:object

check_qr(self, a)
test_qr_empty(self)
test_mode_raw(self)
test_mode_all_but_economic(self)
test_byteorder_check()
test_generalized_raise_multiloop()
test_xerbla_override()