Hi cdb experts and a happy new year (hopefully).
Please consider the following code snippet:
d = 3
{k,l,m,n}::Indices(rotation, values={1..3}).
\epsilon{#}::EpsilonTensor.
ex := (K_{1})_{m n} e_{1}_{n} = \epsilon_{1 m n} e_{1}_{n};
evaluate(ex, $e_{1}_{1} = 1, e_{1}_{2} = 0, e_{1}_{3} = 0$, rhsonly=True);
I am trying to evaluate the simple matrix multiplication K_1 e_1
where K_1
is the antisymmetric matrix \epsilon_{1 m n}
and e_1
is the unit vector [1,0,0]
.
I get the error RuntimeError: No Indices property known for indices in EpsilonTensor
.
On the other hand, if instead of the explicit index _{1}
I use a general index _{l}
then the calculation works (but it's not what I wanted to calculate):
d = 3
{k,l,m,n}::Indices(rotation, values={1..3}).
\epsilon{#}::EpsilonTensor.
ex := (K_{l})_{m n} e_{l}_{n} = \epsilon_{l m n} e_{l}_{n};
evaluate(ex, $e_{1}_{1} = 1, e_{1}_{2} = 0, e_{1}_{3} = 0$, rhsonly=True);
Any advice? Thank you!
GPN