* Implementation of GiNaC's indices. */
/*
- * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/** By default, basic::evalf would evaluate the index value but we don't want
* a.1 to become a.(1.0). */
-ex idx::evalf(int level) const
+ex idx::evalf() const
{
return *this;
}
ex idx::subs(const exmap & m, unsigned options) const
{
// First look for index substitutions
- exmap::const_iterator it = m.find(*this);
+ auto it = m.find(*this);
if (it != m.end()) {
// Substitution index->index
// Find dummy pairs and free indices
it = v.begin(); itend = v.end();
- exvector::const_iterator last = it++;
+ auto last = it++;
while (it != itend) {
if (is_dummy_pair(*it, *last)) {
out_dummy.push_back(*last);