How can I simplify the code using for loop?
for
eta and T are 6-order tensor arrays.
eta
T
using InvertedIndices eta[:,1,1,1