X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmul.cpp;h=eef287cac8d3f090f13d7c82f8d830aa4b6a07b7;hp=36960c0a8b63d5300f61ee842e5dd1280605d2d6;hb=47295e1e73d54bf6cf8953ecc0ce2a848c1fb5b3;hpb=82df718524319471d3a92fb051329aa8cd529c22 diff --git a/ginac/mul.cpp b/ginac/mul.cpp index 36960c0a..eef287ca 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -89,6 +89,13 @@ mul::mul(const epvector & v, const ex & oc, bool do_index_renaming) GINAC_ASSERT(is_canonical()); } +mul::mul(epvector && vp) +{ + overall_coeff = _ex1; + construct_from_epvector(std::move(vp)); + GINAC_ASSERT(is_canonical()); +} + mul::mul(epvector && vp, const ex & oc, bool do_index_renaming) { overall_coeff = oc; @@ -285,13 +292,6 @@ bool mul::info(unsigned inf) const return true; return overall_coeff.info(inf); } - case info_flags::algebraic: { - for (auto & it : seq) { - if (recombine_pair_to_ex(it).info(inf)) - return true; - } - return false; - } case info_flags::positive: case info_flags::negative: { if ((inf==info_flags::positive) && (flags & status_flags::is_positive))