[sage-support] Re: matrix basics

2007-07-26 Thread Dan Christensen
William Stein [EMAIL PROTECTED] writes: On 7/26/07, David Joyner [EMAIL PROTECTED] wrote: On 7/26/07, mak [EMAIL PROTECTED] wrote: 1. How do I change the entire row or column of a matrix at once? In pari, I could do e.g. a=[1,2,3;4,5,6], and then put a[1,]=[0,0,0], which would give

[sage-support] Re: matrix basics

2007-07-26 Thread David Joyner
On 7/26/07, mak [EMAIL PROTECTED] wrote: 1. How do I change the entire row or column of a matrix at once? In pari, I could do e.g. a=[1,2,3;4,5,6], and then put a[1,]=[0,0,0], which would give a=[0,0,0;4,5,6]. What's the sage equivalent? sage: a=[[1,2,3],[4,5,6]] sage: A = matrix(a)

[sage-support] Re: matrix basics

2007-07-26 Thread William Stein
On 7/26/07, David Joyner [EMAIL PROTECTED] wrote: On 7/26/07, mak [EMAIL PROTECTED] wrote: 1. How do I change the entire row or column of a matrix at once? In pari, I could do e.g. a=[1,2,3;4,5,6], and then put a[1,]=[0,0,0], which would give a=[0,0,0;4,5,6]. What's the sage equivalent?

[sage-support] Re: matrix basics

2007-07-26 Thread William Stein
On 7/26/07, Dan Christensen [EMAIL PROTECTED] wrote: There is no SAGE equivalent yet. I really miss the numpy syntax, including broadcasting. For example, Naive question: what exactly is broadcasting, and how might it be useful in the context of SAGE? Probably it's something to add to the