X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ftensor.cpp;h=0e6b116250e69281283c012650dc674253c2ff97;hp=8440a56c3151af093628db82f8a24ce9ecba1241;hb=fd097c33e414f72c77376ae7ad4fbd630b3ccce6;hpb=1e8bbe7edb203ebfbfb169b7d3f84354fce2a2d0 diff --git a/ginac/tensor.cpp b/ginac/tensor.cpp index 8440a56c..0e6b1162 100644 --- a/ginac/tensor.cpp +++ b/ginac/tensor.cpp @@ -437,7 +437,7 @@ ex metric_tensor(const ex & i1, const ex & i2) if (!is_ex_of_type(i1, varidx) || !is_ex_of_type(i2, varidx)) throw(std::invalid_argument("indices of metric tensor must be of type varidx")); - return indexed(tensmetric(), i1, i2); + return indexed(tensmetric(), indexed::symmetric, i1, i2); } ex lorentz_g(const ex & i1, const ex & i2, bool pos_sig)