test_defmatrix

Module Contents

class TestCtor

Bases:TestCase

test_basic(self)
test_exceptions(self)
test_bmat_nondefault_str(self)
class TestProperties

Bases:TestCase

test_sum(self)

Test whether matrix.sum(axis=1) preserves orientation. Fails in NumPy <= 0.9.6.2127.

test_prod(self)
test_max(self)
test_min(self)
test_ptp(self)
test_var(self)
test_basic(self)
test_pinv(self)
test_comparisons(self)
test_asmatrix(self)
test_noaxis(self)
test_repr(self)
class TestCasting

Bases:TestCase

test_basic(self)
class TestAlgebra

Bases:TestCase

test_basic(self)
test_pow(self)

Test raising a matrix to an integer power works as expected.

test_notimplemented(self)

Check that ‘not implemented’ operations produce a failure.

class TestMatrixReturn

Bases:TestCase

test_instance_methods(self)
class TestIndexing

Bases:TestCase

test_basic(self)
class TestNewScalarIndexing

Bases:TestCase

setUp(self)
test_dimesions(self)
test_array_from_matrix_list(self)
test_array_to_list(self)
test_fancy_indexing(self)
test_matrix_element(self)
test_scalar_indexing(self)
test_row_column_indexing(self)
test_boolean_indexing(self)
test_list_indexing(self)
class TestPower

Bases:TestCase

test_returntype(self)
test_list(self)