[GiNaC-list] Expression order changing

Martin Sandve Alnæs martinal at simula.no
Mon Jun 4 10:33:21 CEST 2007


Hi,
when generating code from ginac expressions (with csrc), the order of
the printed expressions will vary depending on previous operations in
the program, in particular the previous construction of symbols. I
understand this is because ginac uses an internal symbol id counter of
some kind.

Is it possible to "reset" this counter, or somehow make sure a set of
newly created symbols keep the same relative order independent of
previous operations in the program? It would save us a tremendous
amount of recompilation and code verification if we could do this.

-- 
---
Martin Sandve Alnæs
PhD student, Cardiac Computations
Simula Research Laboratory, Norway


More information about the GiNaC-list mailing list