[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 wrote: > On Fri, Jan 16, 2009 at 9:22 PM, John H Palmieri > 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

[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 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(), > but those give e