factorization with GiNaC (update)
Bernard Parisse
Bernard.Parisse at ujf-grenoble.fr
Wed Sep 27 16:33:58 CEST 2000
> Hi Bernard,
>
> That looks promising, though it usually needs tons of small manual fixes
> to get it compiled.
Currently I did only tests on GNU/Linux, where it requires editing
the Makefile to get the right path to GiNaC source.
> Before diving deeper into this: Could the replication
> of GiNaC header files not be avoided? That makes maintening your code a
> nightmare. You seem to be accessing class power's basis and exponent,
> hence declaring them public. (I hope you don't write them in reference
> counted objects anywhere.) For accessing, you could simply use the
> .op(0) and .op(1) method. I haven't understood yet what you do with
> expairseq but I am under the impression that this can be dealt with in the
> same way?
Most certainly. I was not aware that I could use op(). Anyway,
I believe that source code using the members names is much more readable
than with op(). Why did you decide not to declare these members public?
Well, maybe the main problem is that it seems impossible to declare
a member accessible read-only in C++.
More information about the GiNaC-devel
mailing list