---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-63-7afd002cf085> in <module>
68 # n = CustomImmutableMatrix([4, 5, 6])
69 # m.history
---> 70 m.elementary_row_op(op="n<->m",row1=0,row2=1).elementary_row_op(op="n<->m",row1=1,row2=2)
/nix/store/lps474q1yp1g9ccw43n92122w6zh7pqp-python3-3.7.7-env/lib/python3.7/site-packages/sympy/matrices/matrices.py in elementary_row_op(self, op, row, k, row1, row2)
834 return self._eval_row_op_multiply_row_by_const(row, k)
835 if op == "n<->m":
--> 836 return self._eval_row_op_swap(row1, row2)
837 if op == "n->n+km":
838 return self._eval_row_op_add_multiple_to_other_row(row, k, row2)
<ipython-input-63-7afd002cf085> in _eval_row_op_swap(self, row1, row2)
42 arrow_latex = self.swap_rows_latex(row1, row2)
43 #print(arrow_latex)
---> 44 self.history.append("&&" + arrow_latex + matrix_latex(result))
45 return result
46
/nix/store/lps474q1yp1g9ccw43n92122w6zh7pqp-python3-3.7.7-env/lib/python3.7/site-packages/sympy/matrices/matrices.py in
getattr(self, attr)
2338 else:
2339 raise AttributeError(
-> 2340 "%s has no attribute %s." % (
self.class.nameclass.
name, attr))
2341
2342 def
len(self):
AttributeError: CustomImmutableMatrix has no attribute history.