def test_GivenUnitBasis_ReturnIdentityMatrix(self): vectors = [(1, 0, 0), (0, 1, 0), (0, 0, 1)] assert_allclose(_build_row_vector_matrix(*vectors), array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]))
def test_GivenMirrorBasis_ReturnCorrectMatrix(self): vectors = [(0, -1, 0), (1, 0, 0), (0, 0, 1)] assert_allclose(_build_row_vector_matrix(*vectors), array([[0, -1, 0], [1, 0, 0], [0, 0, 1]]))
def test_GivenMirrorBasis_ReturnCorrectMatrix(self): vectors = [(0, -1, 0), (1, 0, 0), (0, 0, 1)] assert_allclose(_build_row_vector_matrix(*vectors), array([[0, -1, 0], [1, 0, 0], [0, 0, 1]]))
def test_GivenUnitBasis_ReturnIdentityMatrix(self): vectors = [(1, 0, 0), (0, 1, 0), (0, 0, 1)] assert_allclose(_build_row_vector_matrix(*vectors), array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]))