[GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations branch, master, updated. release_1-4-0-471-g2639812
Richard B. Kreckel
git at ginac.de
Thu Nov 26 21:59:31 CET 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GiNaC -- a C++ library for symbolic computations".
The branch, master has been updated
via 2639812c0ba4e1f9620660bbba1f12bf5b865e29 (commit)
from 27213d158e5ec4b606b4f4d0766bf75eeb18673f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2639812c0ba4e1f9620660bbba1f12bf5b865e29
Author: Richard Kreckel <kreckel at ginac.de>
Date: Wed Nov 25 11:28:10 2015 +0100
In power::expand_add(), don't reserve excess monomial sizes.
There is no need to reserve n terms in each of the monomials of the
result of power(+(x,y,z...;0),n): We can compute it exactly as the
number of nonzero exponents in the multinomial expansion. The good
thing is that this counting is the same for each composition of a
partition, so it can be hoisted out of the loop over compositions.
-----------------------------------------------------------------------
Summary of changes:
ginac/power.cpp | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
hooks/post-receive
--
GiNaC -- a C++ library for symbolic computations
More information about the GiNaC-devel
mailing list