Skip to content
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

Wrong wildcard substitution with a set of tensors #208

Open
tueda opened this issue Jun 28, 2017 · 0 comments
Open

Wrong wildcard substitution with a set of tensors #208

tueda opened this issue Jun 28, 2017 · 0 comments
Labels
bug Something isn't working

Comments

@tueda
Copy link
Collaborator

tueda commented Jun 28, 2017

Imported from https://www.nikhef.nl/~form/forum/viewtopic.php?f=3&t=186.

CF f;
S n;
CT t;
I i;
Set tensors: t;
Set indices: i;
L F = f(1);
id f(n?) = tensors[n](indices[n]);
P "%r";
P;
.end

wrongly gives

FORM 4.1 (Jun 14 2017, v4.1-20131025-356-g541f847) 64-bits  Run: Wed Jun 28 14:29:24 2017

9  151  5  0  -4  130  1  1  3  

   F =
      t(?,i);

The output should be

8  151  4  0  130  1  1  3  

   F =
      t(i);
@tueda tueda added the bug Something isn't working label Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant