Hi list, i have a problem defining a function realizing the default scalar: i have m = matrix([[1,0,0,],[0,1,0],[0,0,1]]) and want to define scalar(v,w) = v * m * w but i always get this: (v, w) |--> [v*w 0 0] [ 0 v*w 0] [ 0 0 v*w]
otherwise, if i do it this way, directly on the console it works: v1 = vector([1,1,1]) v2 = vector([1,0,0]) v1 * m * v2.transpose() how can i force the type in my scalarfunction to be an matrix or even a vector? by the way, is there a scalarfunction defined somewhere? a matrixmultiplication for this seems to be a little bit much overhead for me. greatz -- 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
