matrix.tests.test_matrix_operation

Testing here assumes that numpy and linalg is ALWAYS correct!!!!

If running from PyCharm you can place the following line in “Additional Arguments” for the pytest run configuration -vv -m mat_ops -p no:cacheprovider

Attributes

logger

mat_a

mat_b

mat_c

mat_d

mat_e

mat_f

mat_h

stream_handler

Functions

test_addition(mat1, mat2)

test_identity()

test_multiplication(mat1, mat2)

test_scalar_multiply()

test_subtraction(mat1, mat2)

test_transpose(mat)

Module Contents

matrix.tests.test_matrix_operation.test_addition(mat1, mat2)
matrix.tests.test_matrix_operation.test_identity()
matrix.tests.test_matrix_operation.test_multiplication(mat1, mat2)
matrix.tests.test_matrix_operation.test_scalar_multiply()
matrix.tests.test_matrix_operation.test_subtraction(mat1, mat2)
matrix.tests.test_matrix_operation.test_transpose(mat)
matrix.tests.test_matrix_operation.logger
matrix.tests.test_matrix_operation.mat_a = [[12, 10], [3, 9]]
matrix.tests.test_matrix_operation.mat_b = [[3, 4], [7, 4]]
matrix.tests.test_matrix_operation.mat_c
matrix.tests.test_matrix_operation.mat_d
matrix.tests.test_matrix_operation.mat_e
matrix.tests.test_matrix_operation.mat_f = [1]
matrix.tests.test_matrix_operation.mat_h = [2]
matrix.tests.test_matrix_operation.stream_handler