def test_both_multiplications_with_floats(self):
""" Left- and right- multiplications by floats should be identical """
results = []
for q in self.quats:
x = random.random()
results.append(numpy.allclose((x * q).as_array, (q * x).as_array))
at = all(results)
self.assertTrue(at)
评论列表
文章目录