// Get sign of index permutation (the indices should already be in
// a canonic order but we can't assume what exactly that order is)
- vector<int> v;
+ std::vector<int> v;
v.reserve(i.nops() - 1);
for (unsigned j=1; j<i.nops(); j++)
v.push_back(ex_to_numeric(ex_to_idx(i.op(j)).get_value()).to_int());
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)