On Thu, Jul 5, 2012 at 1:57 PM, John H Palmieri <[email protected]> wrote: > > > On Thursday, July 5, 2012 11:48:27 AM UTC-7, Peng Yu wrote: >> >> I don't find a convenient way for doing element wise product of vectors. >> Is there an operator for it? (or less cumbersome way) > > > sage: v = vector([1,2,3]) > sage: v.pairwise_product(v) > (1, 4, 9) > > > Is that what you want?
Is there also a convenient way for elementwise divide? -- Regards, Peng -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
