-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello , i need help #41
Comments
and the leci_four is // definition of epsilon_{mu,nu}, the whole anti-symmetric tensor
Tensor<double, 4, 4, 4, 4> leci_four()
{
Tensor<double, 4, 4, 4, 4> leci;
leci.zeros();
leci(0, 1, 2, 3) = 1.;
leci(0, 1, 3, 2) = -1.;
leci(0, 3, 1, 2) = 1.;
leci(3, 0, 1, 2) = -1.;
leci(3, 0, 2, 1) = 1.;
leci(0, 3, 2, 1) = -1.;
leci(0, 2, 3, 1) = 1.;
leci(0, 2, 1, 3) = -1.;
leci(2, 0, 1, 3) = 1.;
leci(2, 0, 3, 1) = -1.;
leci(2, 3, 0, 1) = 1.;
leci(3, 2, 0, 1) = -1.;
leci(3, 2, 1, 0) = 1.;
leci(2, 3, 1, 0) = -1.;
leci(2, 1, 3, 0) = 1.;
leci(2, 1, 0, 3) = -1.;
leci(1, 2, 0, 3) = 1.;
leci(1, 2, 3, 0) = -1.;
leci(1, 3, 2, 0) = 1.;
leci(3, 1, 2, 0) = -1.;
leci(3, 1, 0, 2) = 1.;
leci(1, 3, 0, 2) = -1.;
leci(1, 0, 3, 2) = 1.;
leci(1, 0, 2, 3) = -1.;
return leci;
} i think it may have symmetry |
What are the functions And what is the problem exactly? Does it not compile, or does it crash or do you get incorrect results? |
i have solve my problem . and i thank if can determin the index of output , it will more easy to use the einsum . now i must to control the order of input to control the index of output . |
when i write my code i meet a problem it puzzled me
the function is :
it is my code , i do not konw how to write the function use einsum , do i right in up code ?
can you help me , how to write so many term to einsum
The text was updated successfully, but these errors were encountered: