Open lgeretti opened 7 years ago
Original comment by Pieter Collins (Bitbucket: pietercollins, GitHub: pietercollins)
Try a simple sort() first.
Original comment by Pieter Collins (Bitbucket: pietercollins, GitHub: pietercollins)
Taylor model (in the main repositiory) uses ReverseLexicographicIndexLess to sort and relies on writers of low-level code to maintain the sorted order. The new terms (I believe) should go at the beginning. If this is the sort used in stable, you can just use the function from main. Otherwise, either try first sort() and then unique(). Or fix the order in the code. You could write a SortedExpansion::check to see if the terms are properly sorted.
Original comment by Pieter Collins (Bitbucket: pietercollins, GitHub: pietercollins)
Try explicitly sorting the coefficients after the reconditioning.
Originally reported by Luca Geretti (Bitbucket: lgeretti, GitHub: lgeretti)
Thee reconditioning routine makes the value() method return 0.
For example, on ariadne, the code
returns the following original and reconditioned models:
which are clearly correct.
Doing the same on the stable repository using the code
Instead returns the following:
which is still correct, but the x3 term is at the beginning. This may be a hint as to the source of the problem.
For practical purposes I attach the implementation of the recondition method for TaylorModel, in the two repositories. They appear the same to me.