Package test_suite :: Package unit_tests :: Package _maths_fns :: Module test_kronecker_product :: Class Test_kronecker_product
[hide private]
[frames] | no frames]

Class Test_kronecker_product

source code


Unit tests for the maths_fns.kronecker_product relax module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Set up data used by the unit tests.
source code
 
print_nice(self, daeg)
Formatted print out of the tensor.
source code
 
string_transpose(self, index1, index2)
Manually transpose self.daeg_str using the 2 given indices.
source code
 
to_numpy(self, tensor)
Convert the string version of the tensor into a numpy version.
source code
 
test_kron_prod(self)
Test the Kronecker product function kron_prod().
source code
 
test_transpose_12(self)
Check the 1,2 transpose of a rank-4, 3D tensor.
source code
 
test_transpose_13(self)
Check the 1,3 transpose of a rank-4, 3D tensor.
source code
 
test_transpose_14(self)
Check the 1,4 transpose of a rank-4, 3D tensor.
source code
 
test_transpose_23(self)
Check the 2,3 transpose of a rank-4, 3D tensor.
source code
 
test_transpose_24(self)
Check the 2,4 transpose of a rank-4, 3D tensor.
source code
 
test_transpose_34(self)
Check the 3,4 transpose of a rank-4, 3D tensor.
source code
 
test_transpose_reversions(self)
Check that the transposes revert back to the original matrix.
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest, tearDown

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Set up data used by the unit tests.

Overrides: unittest.case.TestCase.setUp