1 | initial version |
The apply_map
method allows to apply a given map to any entry of the matrix, here you can replace any small number by zero:
sage: M = Ω*Λ
sage: M.apply_map(lambda x : 0 if abs(x) <10^-15 else x)
You can also directly use:
sage: M.round()