From: Richard Kreckel Date: Thu, 3 Oct 2019 21:08:24 +0000 (+0200) Subject: Trivialize pseries::eval(). X-Git-Tag: release_1-7-8~2 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=84ebcf26ac5ac91fcfceb67c226167cbc08a4929 Trivialize pseries::eval(). Since 1.7.0, the elements are eval()'ed, so there's nothing to do any more for pseries::eval(). --- diff --git a/ginac/pseries.cpp b/ginac/pseries.cpp index 063722b1..ad6706c2 100644 --- a/ginac/pseries.cpp +++ b/ginac/pseries.cpp @@ -394,17 +394,7 @@ ex pseries::collect(const ex &s, bool distributed) const /** 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(relational(var,point), std::move(new_seq)).setflag(status_flags::evaluated); + return hold(); } /** Evaluate coefficients numerically. */