Пример #1
0
 def test_different_dimensions(self):
     x = rd.random((self.n, 3))
     y = rd.random((self.n + 2, 3))
     with self.assertRaises(exception.MathError):
         math.rmsd(x, y)
Пример #2
0
 def test_same_matrix(self):
     x = rd.random((self.n, 3))
     self.assertLess(math.rmsd(x, x), self.eps)