コード例 #1
0
ファイル: test_math.py プロジェクト: gtamazian/promptpy
 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
ファイル: test_math.py プロジェクト: gtamazian/promptpy
 def test_same_matrix(self):
     x = rd.random((self.n, 3))
     self.assertLess(math.rmsd(x, x), self.eps)