[sage-support] Re: matrix subdivision question

2009-04-09 Thread Robert Bradshaw
On Apr 8, 2009, at 1:51 PM, Justin C. Walker wrote: >> So this means duplicating the subdivisions part of the general matrix >> str function for the mod 2 case? > > As a first cut, why not use the local str() method unless subdivisions > are in place. There may be a performance issue in determin

[sage-support] Re: matrix subdivision question

2009-04-08 Thread Justin C. Walker
On Apr 8, 2009, at 13:29 , John H Palmieri wrote: > > On Apr 8, 1:10 pm, William Stein wrote: >> On Wed, Apr 8, 2009 at 1:06 PM, John H Palmieri >> wrote: >> >>> I'll mark mine as a duplicate. Go ahead with your patch. >> >> Neither Justin nor I have a patch, and I don't think either of us

[sage-support] Re: matrix subdivision question

2009-04-08 Thread John H Palmieri
On Apr 8, 1:28 pm, gerhard wrote: > Re show method: > > M.subdivide(1,3); > print M.get_subdivisions() > show(M) > > I get > > ([1], [3]) > > as for the show method output, no subdivisions. > latex(M) yields > > \left(\begin{array}{rrr|r} > 1 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & > 0

[sage-support] Re: matrix subdivision question

2009-04-08 Thread John H Palmieri
On Apr 8, 1:10 pm, William Stein wrote: > On Wed, Apr 8, 2009 at 1:06 PM, John H Palmieri > wrote: > > > I'll mark mine as a duplicate.  Go ahead with your patch. > > Neither Justin nor I have a patch, and I don't think either of us are > working on one. Justin posted on his ticket "I'll attac

[sage-support] Re: matrix subdivision question

2009-04-08 Thread gerhard
Re show method: M.subdivide(1,3); print M.get_subdivisions() show(M) I get ([1], [3]) as for the show method output, no subdivisions. latex(M) yields \left(\begin{array}{rrr|r} 1 & 1 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 0 & 0 \\ 0 & 1 & 1 & 0 & 0 &

[sage-support] Re: matrix subdivision question

2009-04-08 Thread William Stein
On Wed, Apr 8, 2009 at 1:06 PM, John H Palmieri wrote: > > > > On Apr 8, 1:03 pm, John H Palmieri wrote: >> On Apr 8, 12:56 pm, "Justin C. Walker" wrote: >> >> >> >> > On Apr 8, 2009, at 12:07 , gerhard wrote: >> >> > > Print methods for matrices with subdivisions >> >> > > let M be a matrix ov

[sage-support] Re: matrix subdivision question

2009-04-08 Thread John H Palmieri
On Apr 8, 1:03 pm, John H Palmieri wrote: > On Apr 8, 12:56 pm, "Justin C. Walker" wrote: > > > > > On Apr 8, 2009, at 12:07 , gerhard wrote: > > > > Print methods for matrices with subdivisions > > > > let M be a matrix over QQ: > > >    subdivisions are printed fine > > > over GF(2): > > >  

[sage-support] Re: matrix subdivision question

2009-04-08 Thread John H Palmieri
On Apr 8, 12:56 pm, "Justin C. Walker" wrote: > On Apr 8, 2009, at 12:07 , gerhard wrote: > > > Print methods for matrices with subdivisions > > > let M be a matrix over QQ: > >    subdivisions are printed fine > > over GF(2): > >    M.get_subdivisions() shows the subdivisions are defined, > >

[sage-support] Re: matrix subdivision question

2009-04-08 Thread William Stein
On Wed, Apr 8, 2009 at 12:56 PM, Justin C. Walker wrote: > > > On Apr 8, 2009, at 12:07 , gerhard wrote: > >> Print methods for matrices with subdivisions >> >> let M be a matrix over QQ: >>    subdivisions are printed fine >> over GF(2): >>    M.get_subdivisions() shows the subdivisions are defi

[sage-support] Re: matrix subdivision question

2009-04-08 Thread Justin C. Walker
On Apr 8, 2009, at 12:07 , gerhard wrote: > Print methods for matrices with subdivisions > > let M be a matrix over QQ: >subdivisions are printed fine > over GF(2): >M.get_subdivisions() shows the subdivisions are defined, >but the print method does not know about them. Yup. Most m