Debian Codegraph @

ChangeLog

raw
1 ==================
2 e-antic Change Log
3 ==================
4
5 .. current developments
6
7 v2.1.1
8 ====================
9
10 **Fixed:**
11
12 * Fixed compatibility with SageMath 10.7, 10.8, 10.9
13 * Fixed (linker) issues with macOS 15 in CI and for developers.
14 * Fixed an issue in fmpz_poly_num_real_roots_0_1_sturm where sometimes
15 the number of sign changes in the Sturm sequence was miscounted.
16 * Fixed failing doctest due to noisy deprecation warning from cppyy.
17
18
19
20 v2.1.0
21 ====================
22
23 **Added:**
24
25 * Added functions ``renf_elem_addmul`` and ``renf_elem_submul`` to compute ``res += a * b`` and ``res -= a * b`` with fewer temporaries. In the C++ interface, these methods are called ``iaddmul`` and ``isubmul``.
26
27 **Changed:**
28
29 * Changed the documentation build to use breathe & sphinx instead of standardese & sphinx.
30 * Changed the recommended setup for developers to use pixi instead of conda/mamba. See the README for details.
31 * Changed ``configure`` to not complain when test-requirements such as byexample, benchmark, realalg, or SageMath are missing. (The tests are included if the dependencies are detected but just disabled otherwise without the need for ``--without-byexample --without-benchmark --without-sage --without-realalg``.)
32
33 **Removed:**
34
35 * Removed binder demo from our README (we do not think that anybody has been using it never really worked great.)
36
37 **Fixed:**
38
39 * Fixed build issues with FLINT 3.2.2.
40 * Fixed dependency tracking when ``configure`` is rerun with different compiler flags by tracking config.h in all source files.
41
42
43
44 v2.0.2
45 ====================
46
47 **Fixed:**
48
49 * Fixed exception being thrown by PyPy due to https://github.com/wlav/cppyy/issues/209.
50
51
52
53 v2.0.1
54 ====================
55
56 **Fixed:**
57
58 * Fixed segfault when using non-intrusive pointers to ``renf_class`` such as the ones returned by ``parent()`` from Python.
59 * Fixed compilation with GCC 13.2.1.
60
61
62
63 v2.0.0
64 ====================
65
66 **Added:**
67
68 * Added tarball with the built documentation to our GitHub release pages with every future release of e-antic.
69 * Added support for FLINT 3.
70
71 **Removed:**
72
73 * Removed the static library from the conda package that we upload with every commit to the master branch to the flatsurf channel. To our knowledge nobody is using these builds. They can sometimes be useful for debugging because they are built with debug symbols (which is why they are very big.) Providing a static library that nobody should use anyway is eating up the limited storage on anaconda.org twice as fast so we disable this.
74
75 **Fixed:**
76
77 * Adapted CI setup on GitHub to changes in setup-miniconda.
78 * Fixed some typos in source code, documentation, and error messages.
79 * Improved `environment.yml` files for development to not pull in any incompatible dependencies from PyPI silently
80 * Fixed compiler warning about possibly uninitialized variable.
81
82
83
84 v1.3.0
85 ====================
86
87 **Added:**
88
89 * Added support for FLINT 2.8 and 2.9
90 * Added short and unsigned short operators to C++ interface.
91
92
93
94 v1.2.3
95 ====================
96
97 **Added:**
98
99 * Added automatic update on conda-forge with every release.
100
101 **Fixed:**
102
103 * Fixed soname which was not bumped in the 1.2.2 release.
104
105
106
107 v1.2.2
108 ====================
109
110 **Fixed:**
111
112 * Fixed conda channels used for binder notebooks.
113 * Fixed compilation errors on recent compilers by upgrading catch2 dependency used for testing.
114 * Fixed deserialization of renf_class from old Python pickles. (#242 sometimes crashed when called from Python since cppyy had trouble with the exceptions being thrown.)
115 * Fixed "installation with conda" page in our documentation (#240)
116 * Added logo to documentation. (#239)
117 * Fixed serialization with cereal 1.3.1+.
118 * Fixed compiler warnings about missing prototypes for test functions.
119
120
121
122 v1.2.1
123 ====================
124
125 **Fixed:**
126
127 * Fixed serialization of `renf_class` with cereal>=1.3.2 (#224)
128
129 * Fixed deserialization of objects serialized with e-antic prior to 1.0.0
130
131
132
133 v1.2.0
134 ====================
135
136 **Performance:**
137
138 * Improved conversion from vectors of rational coefficients to `renf_elem_class` by using a faster code path in FLINT.
139
140 * Improved conversion from SageMath number fields to pyeantic `RealEmbeddedNumberField`. This **adds a dependency** of pyeantic on gmpxxyy.
141
142
143
144 v1.1.1
145 ====================
146
147 **Deprecated:**
148
149 * Deprecated arithmetic between elements in different number fields in the C++ interface. Before, an operation such as `a + b` was possible even if `a` and `b` lived in different number fields if at least one of them was actually a rational number. This led to inconsistent parent fields of the resulting element. We still allow such operations if the parent of `a` or `b` is the rational field (`renf_class::make()`) otherwise a deprecation warning is printed. To fully opt in to the new behaviour set the environment variable `LIBEANTIC_STRICT_BINOP` to any value; this raises an exception instead of printing a warning.
150
151 **Fixed:**
152
153 * Fixed a compilation error on some xenial systems.
154 * Fixed import order in pyeantic's setup.py script.
155 * Fixed inclusion of .map files in distribution tarball even if building without version script support.
156
157 **Performance:**
158
159 * Improved performance of `RealEmbeddedNumberField` in Python interface by caching results. In particular the costly conversion from `renf_class`.
160
161
162
163 v1.1.0
164 ====================
165
166 **Added:**
167
168 * automatic integration checks for [Normaliz](https://github.com/Normaliz/Normaliz)
169 * Added support for Python 3.10; we are now automatically testing pyeantic with
170 Python 3.10.
171 * Added `renf_class` that uses a root with dynamic precision. (Makes it easier to specify a root when the roots of the minimal polynomial are very close to each other.)
172
173 **Changed:**
174
175 * We do not claim anymore that `_cmp` functions return -1, 0, 1. Instead we
176 only make a statement about the sign of the integer returned. In practice we
177 still return -1, 0, 1 for the time being.
178 * Header file `e-antic.h` is now called `local.h`. There is still a header file
179 `e-antic.h` that includes all of e-antic's C interface, so in particular
180 `local.h`.
181 * Header file `renfxx_fwd.hpp` is now called `forward.hpp`. The old header file
182 `renfxx_fwd.hpp` can still be used.
183 * Header file `renfxx.h` is now called `e-antic.hpp`. The old header file
184 `renfxx.h` can still be used.
185 * Dropped explicit support for Python 3.6 which has reached its end of life. It
186 should still work but we are not testing it explicitly in our CI anymore.
187
188 **Fixed:**
189
190 * We do not assume anymore that `_cmp` functions return -1, 0, 1. FLINT, GMP,
191 and Arb only guarantee that these functions return a negative, zero, or
192 positive integer. In practice their implementations return -1, 0, 1, however
193 in some obscure case on Fedora/i686, this was not the case.
194 * Removed unused includes that cannot be resolved on Windows.
195 * Fixed a compiler warning on Fedora.
196 * Improved the error message when arb headers cannot be found. Fedora installs the arb headers into /usr/include/arb instead of /usr/include.
197 * Added missing `LIBEANTIC_API` declarators so building with `-fvisibility=hidden` produces a usable libeanticxx.so.
198 * Updated installation instructions for installation from conda-forge. The
199 e-antic package there has been renamed to libeantic. The package `e-antic`
200 still exists but is now essentially an alias for `libeantic` and `pyeantic`.
201 * Worked around doctesting issues in SageMath 9.4.
202 * Fixed failing SageMath tests when pytest is installed.
203 * Fixed construction of `RealEmbeddedNumberField` in Python when roots of the minimal polynomial are very close to each other.
204
205
206
207 v1.0.3
208 ====================
209
210 **Fixed:**
211
212 * Cleaned up the README and our Zenodo site.
213
214 * Fixed linking of C++ test programs.
215
216
217
218 v1.0.2
219 ====================
220
221 **Fixed:**
222
223 * removed docbuild warnings for latest version of mkdocs.
224 * Fixed parsing of trivial number fields in pyeantic. #197
225 * Conversion from `NumberField` to `RealEmbeddedNumberField` when defining polynomial is not in `x`.
226
227
228
229 v1.0.1
230 ====================
231
232 **Fixed:**
233
234 * `./configure` now checks for cppyythonizations which are required to run Python tests
235 * allow creation of `RealEmbeddedNumberField` from an intrusive pointer in pyeantic.
236 * Skip tests requiring realalg and sage when configured --without-realalg and --without-sage, respectively.
237 * Disable pyeantic testing --without-pytest.
238
239
240
241 v1.0.0
242 ====================
243
244 **Added:**
245
246 * Added `renf_class::construction()` which produces the parameters that can be used to create a `renf_class` with `renf_class::make()`.
247 * Run CI on macOS & Linux
248 * Added `renf_class::get_pword` to extract the number field set with `renf_class::set_pword` to ease migration of legacy code.
249 * Added `.map` files so only API symbols get exported when running `./configure --with-version-script`.
250 * Added visibility attributes to header files; this will be necessary on Windows and allows compilation with `-fvisibility=hidden`
251 * Conda packages are now uploaded automatically to the flatsurf channel with every release.
252 * Integrated the Python wrapper pyeantic into the e-antic repository
253 * Added `renf_elem_class::floordiv()` to perform `(a/b).floor()` more efficiently
254 * Floor division of `renf_elem_t`
255 * Added the missing implementations of free `floor`, `ceil`, and `pow` functions to the C++ library.
256 * Added `renf_elem_swap(renf_elem_t, renf_elem_t)`
257 * There is now `e-antic/renfxx_fwd.hpp` if you only need forward declarations
258 of `renf_class` and `renf_elem_class`.
259 * `renf_elem_class` can now be created from signed and unsigned long long.
260 * `renf_elem_class` can now be created from vectors of primitive integers, e.g.,
261 ```
262 renf_elem_class x(K, {1, 2, 3}); // = 3*x^2 + 2*x + 1
263 ```
264 where before the entries of the vector had to be `mpz_class`.
265 * Move semantics `&&` have been added to `renf_elem_class`.
266 * There is now support for serialization with cereal. See t-cereal.cpp for
267 examples on how to use it.
268 * The release process has been automated with [rever](https://regro.github.io/rever-docs/)
269
270 **Changed:**
271
272 * Split `renfxx.h` into `renf_elem_class.hpp` and `renf_class.hpp` headers. The
273 original header still exists and simply includes the two novel headers.
274 * Split the header `e-antic/poly_extra.h` into `e-antic/fmpz_poly_extra.h` and
275 `e-antic/fmpq_poly_extra.h`. Typically, you do not want to include either of
276 those as they are mostly meant to be used internally.
277 * C++ Comparison operators of `renf_elem_class` are now free so they participate in
278 implicit casts in the same way like the boost generated free operators that
279 are derived from them.
280 * The C++ interface now requires C++14.
281 * All C++ classes are now declared in the namespace `eantic`.
282 * The semantics of the C++ `operator =` have changed. In e-antic 0.1 the
283 following would create the unit in the field K.
284 ```
285 renf_elem_class x(K);
286 x = 1;
287 ```
288 Now the above statement makes x a rational number. More generally, an
289 assignment resets the number field so that after `x = y` the condition
290 `x.nf == renf_elem_class(y).nf` holds. To mimic the old behavior you need
291 to rewrite the above as
292 ```
293 renf_elem_class x(K);
294 x = renf_elem_class(K, 1);
295 ```
296 * The C++ `renf_class` is now hidden behind a factory to get smart pointer
297 semantics everywhere. Create a `renf_class` by calling `renf_class::make(…)`.
298 This returns a smart pointer, so you might have to replace some `.` with
299 `->`.
300 * The change of semantics in assignment also affects reading from streams (in
301 order to create `renf_elem_class`). Before the following would parse an element
302 into a number field:
303 ```
304 renf_elem_class x(K);
305 in >> x;
306 ```
307 Now this only works if the stream contains a rational number. (Otherwise an
308 exception is raised.) As `in >> x` also resets `x.nf`. The above code should
309 be replaced with:
310 ```
311 renf_elem_class x;
312 K.set_pword(in);
313 in >> x;
314 ```
315 * `string renf_class::gen_name` is now a method so it needs to be called.
316 * Many operations that threw an exception before when domains were mixed, now
317 abort program execution (typically through a call to `assert()`.) You are not
318 supposed to mix domains unless explicitly stated otherwise.
319 * `renf_class.operator==` now also checks that the generator name is the same.
320 Similarly, `renf_class.operator=` now also resets the generator name.
321 * Changed renf_elem generator in C++ unit tests to always start with the zero
322 element since it probably does not get generated by chance and can obviously
323 cause a lot of trouble.
324
325 **Deprecated:**
326
327 * Some methods have been deprecated and might be removed in a future release,
328 mostly to make the interface more consistent. The deprecation warnings give
329 hints which methods to use instead.
330
331 **Removed:**
332
333 * `renf_elem_class(string&)` has been removed. If you want to parse a rational
334 number, use `renf_elem_class(mpq_class(string))`. If you want to parse into a
335 number field, use `renf_elem_class(renf_class&, string&)`.
336 * `renf_elem_class::operator=(string&)` has been removed. If you want to parse
337 a rational into an element, use `x = mpq_class(string)`. If you want to parse
338 into a number field, use `x = renf_elem_class(x.parent(), string)`.
339 * `renf_elem_class(vector<...>)` have been removed as it would have thrown an
340 exception always anyway.
341 * `renf_elem_class::operator=(vector<...>)` have been removed due to the change
342 of semantics of `=`. If `x` is not a rational you get the same behaviour as
343 before with `x = renf_elem_class(x.parent(), {1, 2, 3})`.
344 * `renf_class::xalloc()` has been removed and replaced by an implementation
345 detail.
346
347 **Fixed:**
348
349 * Compatible with FLINT 2.7
350 * Removed dependency of `renfxx_cereal.h` on Arb and FLINT, i.e., one does not need to `-larb -lflint` anymore when using cereal.
351 * Set pins in Conda packages as they are in https://github.com/conda-forge/conda-forge-pinning-feedstock
352 * `E_ANTIC_RELEASE` now reports the correct version number, i.e., 10000.
353 * e-antic had claimed to be thread safe via an open MP pragma (in the number
354 field refinement). In some cases, there was a problem with thread-safety. We
355 now require users to explicitly mark multithreaded sections by forbidding
356 mutations to a renf, see `renf_set_immutable`. As a result, there are some
357 operations that cannot be done anymore in a multi-threaded environment but
358 they now fail properly (instead of leading to random crashes.)
359
360 **Performance:**
361
362 * Speed up arithmetic between `renf_elem_class` in C++ interface.
363 * Speed up creation of trivial number fields by a factor of seven.
364 * Speed up `renf_class::operator==`
365
366
367
368 v1.0.0-rc.16
369 ====================
370
371 **Fixed:**
372
373 * Fixed arithmetic with rationals in different number fields.
374
375
376
377 v1.0.0-rc.15
378 ====================
379
380 **Fixed:**
381
382 * Made lexical_cast include work with more versions of boost.
383
384
385
386 v1.0.0-rc.14
387 ====================
388
389 **Changed:**
390
391 * Split `renfxx.h` into `renf_elem_class.hpp` and `renf_class.hpp` headers. The
392 original header still exists and simply includes the two novel headers.
393
394 **Performance:**
395
396 * Speed up arithmetic between `renf_elem_class` in C++ interface.
397 * Speed up creation of trivial number fields by a factor of seven.
398
399
400
401 v1.0.0-rc.13
402 ====================
403
404 **Added:**
405
406 * Added `renf_class::construction()` which produces the parameters that can be used to create a `renf_class` with `renf_class::make()`.
407
408 **Fixed:**
409
410 * compatible with FLINT 2.7
411 * Removed dependency of `renfxx_cereal.h` on Arb and FLINT, i.e., one does not need to `-larb -lflint` anymore when using cereal.
412
413
414
415 v1.0.0-rc.12
416 ====================
417
418 **Added:**
419
420 * run CI on macOS & Linux
421 * added `renf_class::get_pword` to extract the number field set with `renf_class::set_pword` to ease migration of legacy code.
422 * added `.map` files so only API symbols get exported when running `./configure --with-version-script`.
423 + added visibility attributes to header files; this will be necessary on Windows and allows compilation with `-fvisibility=hidden`
424
425 **Fixed:**
426
427 * set pins in Conda packages as they are in https://github.com/conda-forge/conda-forge-pinning-feedstock
428 * adapt to changes in cppyy 1.9.0
429 * `E_ANTIC_RELEASE` now reports the correct version number, i.e., 10000.
430
431
432
433 v1.0.0-rc.11
434 ====================
435
436 **Fixed:**
437
438 * fixed pyeantic version bump in rever script
439
440
441
442 v1.0.0-rc.10
443 ====================
444
445 **Added:**
446
447 * Conda packages are now uploaded automatically to the flatsurf channel with every release.
448 * integrated pyeantic into the e-antic repository
449
450
451
452 v1.0.0-rc.9
453 ====================
454
455 **Changed:**
456
457 * Split the header `e-antic/poly_extra.h` into `e-antic/fmpz_poly_extra.h` and
458 `e-antic/fmpq_poly_extra.h`. Typically, you do not want to include either of
459 those as they are mostly meant to be used internally.
460
461 **Fixed:**
462
463 * Either side of a floor division may now be rational.
464
465
466
467 v1.0.0-rc.8
468 ====================
469
470 **Added:**
471
472 * `renf_elem_class::floordiv()` to perform `(a/b).floor()` more efficiently
473
474 **Changed:**
475
476 * changed renf_elem generator to always start with the zero element since it
477 probably does not get generated by chance and can obviously cause a lot of
478 trouble.
479
480
481
482 v1.0.0-rc.7
483 ====================
484
485
486
487 v1.0.0-rc.6
488 ====================
489
490
491
492 v1.0.0-rc.5
493 ====================
494
495 **Added:**
496
497 * floor division of `renf_elem_t`
498 * added the missing implementations of free `floor`, `ceil`, and `pow` functions to the C++ library.
499
500 **Changed:**
501
502 * simplified testing of binary operators
503 * Comparison operators of `renf_elem_class` are now free so they participate in
504 implicit casts in the same way like the boost generated free operators that
505 are derived from them.
506
507 **Fixed:**
508
509 * Adapted to changes in unique-factory.
510 * implemented `renf_elem_class(renf_class, std::vector)` constructors that went missing in 39e1215e421e128b230fb62ff88ae0ac9b6414e7.
511
512 **Performance:**
513
514 * Speed up `renf_class::operator==`
515
516
517
518 v1.0.0-rc.3
519 ====================
520
521 **Fixed:**
522
523 * release tarball was missing some header files with long names
524
525
526
527 v1.0.0-rc.2
528 ====================
529
530 **Added:**
531
532 * ` renf_elem_swap(renf_elem_t, renf_elem_t)`
533 * There is now `e-antic/renfxx_fwd.h` if you only need forward declarations of
534 `renf_class` and `renf_elem_class`.
535 * `renf_elem_class` can now be created from signed and unsigned long long.
536 * `renf_elem_class` can now be created from vectors of primitive integers, e.g.,
537 ```
538 renf_elem_class x(K, {1, 2, 3}); // = 3*x^2 + 2*x + 1
539 ```
540 where before the entries of the vector had to be `mpz_class`.
541 * Move semantics `&&` have been added to `renf_elem_class`.
542 * There is now support for serialization with cereal. See t-cereal.cpp for
543 examples on how to use it.
544 * the release process has been automated with [rever](https://regro.github.io/rever-docs/)
545
546 **Changed:**
547
548 * `e-antic/renfxx.h` now requires C++17.
549 * All classes are now declared in the namespace `eantic`.
550 * The semantics of `operator =` have changed. In e-antic 0.1 the following
551 would create the unit in the field K.
552 ```
553 renf_elem_class x(K);
554 x = 1;
555 ```
556 Now the above statement makes x a rational number. More generally, an
557 assignment resets the number field so that after `x = y` the condition
558 `x.nf == renf_elem_class(y).nf` holds. To mimic the old behavior you need
559 to rewrite the above as
560 ```
561 renf_elem_class x(K);
562 x = renf_elem_class(K, 1);
563 ```
564 * `renf_class` is now hidden behind a factory to get shared_ptr semantics
565 everywhere. Create a `renf_class` by calling `renf_class::make(…)`. This
566 returns a smart pointer, so you might have to replace some `.` with `->`.
567 * The change of semantics in assignment also affects reading from streams (in
568 order to create `renf_elem_class`). Before the following would parse an element
569 into a number field:
570 ```
571 renf_elem_class x(K);
572 in >> x;
573 ```
574 Now this only works if the stream contains a rational number. (Otherwise an
575 exception is raised.) As `in >> x` also resets `x.nf`. The above code should
576 be replaced with:
577 ```
578 renf_elem_class x;
579 K.set_pword(in);
580 in >> x;
581 ```
582 * `string renf_class::gen_name` is now a method so it needs to be called.
583 * Many operations that threw an exception before when domains were mixed, now
584 abort program execution (typically through a call to `assert()`.) You are not
585 supposed to mix domains unless explicitly stated otherwise.
586 * `renf_class.operator==` now also checks that the generator name is the same.
587 Similarly, `renf_class.operator=` now also resets the generator name.
588
589 **Deprecated:**
590
591 * Some methods have been deprecated and might be removed in a future release,
592 mostly to make the interface more consistent. The deprecation warnings give
593 hints which methods to use instead.
594
595 **Removed:**
596
597 * `renf_elem_class(string&)` has been removed. If you want to parse a rational
598 number, use `renf_elem_class(mpq_class(string))`. If you want to parse into a
599 number field, use `renf_elem_class(renf_class&, string&)`.
600 * `renf_elem_class::operator=(string&)` has been removed. If you want to parse
601 a rational into an element, use `x = mpq_class(string)`. If you want to parse
602 into a number field, use `x = renf_elem_class(x.parent(), string)`.
603 * `renf_elem_class(vector<...>)` have been removed as it would have thrown an
604 exception always anyway.
605 * `renf_elem_class::operator=(vector<...>)` have been removed due to the change
606 of semantics of `=`. If `x` is not a rational you get the same behaviour as
607 before with `x = renf_elem_class(x.parent(), {1, 2, 3})`.
608 * `renf_class::xalloc()` has been removed and replaced by an implementation
609 detail.
610
611 **Fixed:**
612
613 * e-antic had claimed to be thread safe via an open MP pragma (in the number
614 field refinement). In some cases, there was a problem with thread-safety. We
615 now require users to explicitly mark multithreaded sections by forbidding
616 mutations to a renf, see `renf_set_immutable`. As a result, there are some
617 operations that cannot be done anymore in a multi-threaded environment but
618 they now fail properly (instead of leading to random crashes.)
619
620
621
622 v0.1
623 ====
624
625 **Added:**
626
627 * real roots isolation and refinement (poly_extra.h)
628 * renf structure (renf.h)
629 * renf_elem structures (renf_elem.h)
630 * C++ interface (renfxx.h)
631