def testRandom(self): m = Matrix(self.size) m.random(3); one = Matrix(self.size) one.one() self.assertTrue(one.isAlmostEqual(m * m.invertQRHouseholder()))
def testUnit(self): one = Matrix(self.size) one.one() self.assertTrue(one.isAlmostEqual(one.invertQRHouseholder()))