| 1 | initial version |
I've been using SageMath for a short time but I think I can help you.
I don't understand your last command: t[eU,:]== [1,1]. You are comparing the tensor with [1,1]. I guess this is not what you intended. In essence you are defining a structure akin to a 3 by 3 matrix, so in order to define the tensor I would use something like:
t[0,0], t[1,1], t[2,2] = 1, 2, 3
In order to see the tensor you can use
t[eU,:]
or
t.display(eU)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.