| 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()
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.