Construct row vector objects and apply the dot() method!
On Jul 5, 2012 2:48 PM, "Peng Yu" <[email protected]> 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)
>
> ~/linux/test/sage/vector/*$ ./main.sage
> 5
> ~/linux/test/sage/vector/*$ cat main.sage
> #!/usr/bin/env sage
>
> x=vector([1,2])
> print x*x
>
> 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
>

-- 
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

Reply via email to