Trivialize pseries::eval().
authorRichard Kreckel <kreckel@ginac.de>
Thu, 3 Oct 2019 21:08:24 +0000 (23:08 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Thu, 3 Oct 2019 21:08:24 +0000 (23:08 +0200)
Since 1.7.0, the elements are eval()'ed, so there's nothing to do any
more for pseries::eval().

ginac/pseries.cpp

index 063722b..ad6706c 100644 (file)
@@ -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<pseries>(relational(var,point), std::move(new_seq)).setflag(status_flags::evaluated);
+       return hold();
 }
 
 /** Evaluate coefficients numerically. */