[sage-support] Re: cokernel of a matrix (and other questions about matrices and free modules)

2009-01-17 Thread John H Palmieri
On Jan 16, 9:42 pm, William Stein wst...@gmail.com wrote: On Fri, Jan 16, 2009 at 9:22 PM, John H Palmieri jhpalmier...@gmail.com wrote: 1. How can I compute the cokernel of a matrix? For example: sage: mat = matrix(ZZ, 2, 2, [[1, 0], [0, 2]]) sage: M = FreeModule(ZZ, rank=2) Then I

[sage-support] Re: cokernel of a matrix (and other questions about matrices and free modules)

2009-01-16 Thread William Stein
On Fri, Jan 16, 2009 at 9:22 PM, John H Palmieri jhpalmier...@gmail.com wrote: 1. How can I compute the cokernel of a matrix? For example: sage: mat = matrix(ZZ, 2, 2, [[1, 0], [0, 2]]) sage: M = FreeModule(ZZ, rank=2) Then I would like to use M / mat.image() or M / mat.column_module(),