1 | initial version |
Thank for the answer, Mitesh. It is hard to write some sample code since I obtained the matrix in question after applying a few algebraic topology procedures that took about half-an-hour. However, here are the last few lines of code:
sage: M2 = CC.differential(2)
sage: M2
558 x 3224 sparse matrix over Integer Ring (type 'print M2.str()' to see all of the entries)
sage: MSF2 = M2.smith_form()
About 10 minutes later:
python(445) malloc: * vm_allocate(size=124502016) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=124424192) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=124346368) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=124268544) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=124190720) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=124112896) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=124035072) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=123961344) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=123883520) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=123805696) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=123727872) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
python(445) malloc: * vm_allocate(size=123650048) failed (error code=3)
python(445) malloc: * error: can't allocate region
python(445) malloc: * set a breakpoint in szone_error to debug
MemoryError Traceback (most recent call last)
Note that I also tried typing print M2.str() and after a minute, the computer printed the sparse incidence matrix just fine.