[sage-support] Re: weird behaviour when selecting a row/column from a matrix

2009-03-25 Thread Christophe Oosterlynck
Ah of course. Thank you both for your help. Christophe On Mar 25, 4:00 pm, Jason Grout wrote: > Johan Oudinet wrote: > > On Wed, Mar 25, 2009 at 11:39 AM, Christophe Oosterlynck > > wrote: > >> Any comments on this? > > >> it's really strange that when getting a vector from the matrix a > > >>

[sage-support] Re: weird behaviour when selecting a row/column from a matrix

2009-03-25 Thread Jason Grout
Johan Oudinet wrote: > On Wed, Mar 25, 2009 at 11:39 AM, Christophe Oosterlynck > wrote: >> Any comments on this? >> >> it's really strange that when getting a vector from the matrix a >> b = a[:,0] >>> you have to use an extra index when you want to select an element from >> that vector b:

[sage-support] Re: weird behaviour when selecting a row/column from a matrix

2009-03-25 Thread Johan Oudinet
On Wed, Mar 25, 2009 at 11:39 AM, Christophe Oosterlynck wrote: > > Any comments on this? > > it's really strange that when getting a vector from the matrix a > >>> b = a[:,0] >> you have to use an extra index when you want to select an element from > that vector b: > >>> b[0][0] > > instead of j

[sage-support] Re: weird behaviour when selecting a row/column from a matrix

2009-03-25 Thread Christophe Oosterlynck
Any comments on this? it's really strange that when getting a vector from the matrix a >> b = a[:,0] you have to use an extra index when you want to select an element from that vector b: >> b[0][0] instead of just b[0] (this gives a list with 1 element...) Christophe On Mar 19, 3:39 pm, Chr