* methods for series expansion. */
/*
- * GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2020 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
/** Perform coefficient-wise automatic term rewriting rules in this class. */
ex pseries::eval() const
{
- if (flags & status_flags::evaluated) {
- return *this;
- }
-
- // Construct a new series with evaluated coefficients
- epvector new_seq;
- new_seq.reserve(seq.size());
- for (auto & it : seq)
- new_seq.emplace_back(expair(it.rest, it.coeff));
-
- return dynallocate<pseries>(relational(var,point), std::move(new_seq)).setflag(status_flags::evaluated);
+ return hold();
}
/** Evaluate coefficients numerically. */