[sage-devel] Re: vector products

2012-01-24 Thread Dox
You're very right! Sorry On Jan 24, 1:06 pm, Jason Grout wrote: > On 1/24/12 9:56 AM, Dox wrote: > > > Hi Jason, > > > Thank you for the suggestion. Nonetheless, the first does not work... > > I venture to guess that SAGE understand the product (*) as commutative > > for vectors... or somehow it

[sage-devel] Re: vector products

2012-01-24 Thread Jason Grout
On 1/24/12 9:56 AM, Dox wrote: Hi Jason, Thank you for the suggestion. Nonetheless, the first does not work... I venture to guess that SAGE understand the product (*) as commutative for vectors... or somehow it is rearranged. u1.column()*u2.row() gives a 3x3 matrix. u1.row()*u1.column() gives

[sage-devel] Re: vector products

2012-01-24 Thread Dox
Hi Jason, Thank you for the suggestion. Nonetheless, the first does not work... I venture to guess that SAGE understand the product (*) as commutative for vectors... or somehow it is rearranged. The outer_product is OK! Thank you so much! On Jan 24, 12:06 pm, Jason Grout wrote: > On 1/24/12 8:

[sage-devel] Re: vector products

2012-01-24 Thread Dox
Thx, this is it! On Jan 24, 12:01 pm, David Joyner wrote: > On Tue, Jan 24, 2012 at 9:57 AM, Dox wrote: > > Hi everyone, > > > Today I rediscover a "problem" with the product of vectors. > > > I've defined two vectors u1 and u2, > > > sage: u1 = vector([a,b,c]) > > sage: u2 = vector([d,f,g]) > >

[sage-devel] Re: vector products

2012-01-24 Thread Jason Grout
On 1/24/12 9:06 AM, Jason Grout wrote: On 1/24/12 8:57 AM, Dox wrote: Hi everyone, Today I rediscover a "problem" with the product of vectors. I've defined two vectors u1 and u2, sage: u1 = vector([a,b,c]) sage: u2 = vector([d,f,g]) then I try to construct the matrix u1*u2.column() sage: M

[sage-devel] Re: vector products

2012-01-24 Thread Jason Grout
On 1/24/12 8:57 AM, Dox wrote: Hi everyone, Today I rediscover a "problem" with the product of vectors. I've defined two vectors u1 and u2, sage: u1 = vector([a,b,c]) sage: u2 = vector([d,f,g]) then I try to construct the matrix u1*u2.column() sage: M = u1*u2.column() sage: show(M) but it i