With the current code in Line 84, it is not in compliance with Line 83. Should the correct one be as follows? Line 84: self.cur_R = self.cur_R.dot(R)