| 1 | initial version |
If your matrix m only contains entries like 0.O and 1.0, you can try to transform it back to an integer matrix:
sage: n = m.change_ring(ZZ)
| 2 | No.2 Revision |
If your matrix m only contains entries like 0.O and 1.0, you can try to transform it back to an integer matrix:
sage: n = m.change_ring(ZZ)
You can also transform your entries into integers while creating your matrix:
sage: m = matrix([[ ZZ(_) for _ in line] for line in data])
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.