]> www.ginac.de Git - ginac.git/commitdiff
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 063722b10dd90e34e0b7afec1eb0365db0202b5c..ad6706c284e4c867aaf97ba033dd3d56af8daae8 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. */