Commit graph

2438 commits

Author SHA1 Message Date
Matthias Gessinger
d642a9ae71 Declare variables at the top of every function 2021-07-28 16:59:58 +02:00
Matthias Gessinger
89545adbcc Slightly optimize memory usage
Save some memory by using smaller arrays for the even and odd terms.
Adjust the loop lengths, to accomodate for shorter arrays
not overwriting "outdated" data.

E.g.: If a and b are aliased, then the first poly_mul does not overwrite
the leading coefficient, which leads to incorrect results.
2021-07-28 16:07:46 +02:00
Matthias Gessinger
2dae4a0828 Provide documentation for Graeffe transform 2021-07-27 19:22:11 +02:00
Matthias Gessinger
499f05dbcc Adapt coding style to include spaces 2021-07-27 18:59:01 +02:00
Matthias Gessinger
6491bd271a Fix Copyright notice 2021-07-27 14:55:57 +02:00
Matthias Gessinger
c22f6a87bb Write tests for real and complex graeffe_transform
Create polynomials from a set of roots.
Square these roots to compute the expected output.
2021-07-27 14:12:42 +02:00
Matthias Gessinger
ac29673684 Implement Graeffe Transform for real and complex poly 2021-07-27 14:12:07 +02:00
fredrik
c2168d5f9c doc fmt 2021-07-25 14:33:50 +02:00
fredrik
5c26f5cc24 gamma helper functions 2021-07-25 14:22:46 +02:00
fredrik
7748f0230c add arf_fma, arb_fma, arb_fma_ui 2021-07-25 12:41:17 +02:00
fredrik
e7bcb28c0f fix typo 2021-07-25 11:33:41 +02:00
fredrik
425ff2730f update docs; call this 2.20.0 2021-07-25 10:29:01 +02:00
fredrik
0917cf7384 rising factorial algorithms extravaganza 2021-07-11 08:06:18 +02:00
fredrik
0f54bc6826 start of new rising factorial code 2021-07-07 18:01:27 +02:00
fredrik
d144c31760 bugfix; improve arb_fmpz_poly_evaluate_arb and arb_fmpz_poly_evaluate_acb using dot products 2021-07-02 15:10:11 +02:00
fredrik
d49264f251 arb_dot_fmpz and variants 2021-07-02 11:08:00 +02:00
fredrik
38e0c1d552 even faster arb_gamma_fmpq at high precision 2021-06-29 19:13:07 +02:00
fredrik
daf9755097 improve tuning for arb_gamma_fmpq 2021-06-24 15:59:21 +02:00
fredrik
d039b54115 Merge remote-tracking branch 'origin/master' 2021-06-24 10:03:42 +02:00
fredrik
896960f202 use quasilinear algorithm in arb_gamma_fmpq for all small fractions 2021-06-24 10:03:17 +02:00
Fredrik Johansson
30984672d6
Merge pull request #366 from tthsqe12/add_acb_elliptic_p_prime
add acb_elliptic_p_prime
2021-05-22 21:26:36 +02:00
Daniel Schultz
43e74b1f57 check relation 2021-05-22 19:01:30 +02:00
Daniel Schultz
151193e52d add acb_elliptic_p_prime 2021-05-22 18:50:30 +02:00
fredrik
12d9702447 minor code cleanup 2021-05-19 12:24:53 +02:00
fredrik
46f4ceabf7 remove garbage 2021-05-19 12:18:23 +02:00
fredrik
5a3364ccef Merge branch 'master' of github.com:fredrik-johansson/arb 2021-05-19 12:17:49 +02:00
fredrik
2a1172bf3e arb_fmpz_poly_complex_roots: explicitly guarantee that roots are isolated (was true in practice, but could theoretically fail when the deflation hack is used) 2021-05-19 12:17:32 +02:00
Fredrik Johansson
b25adc6414
Merge pull request #365 from albinahlback/uniformly_distributed_random_numbers
Uniformly distributed random numbers
2021-05-19 12:15:49 +02:00
Albin Ahlbäck
f4fe05b8a2 Fix urandom stuff 2021-05-18 22:52:35 +02:00
Albin Ahlbäck
1f62c81be8 Fix documentation of ar[f/b]_urandom 2021-05-18 01:55:49 +02:00
Albin Ahlbäck
ef6b9f2449 Second review after Fredrik's comments 2021-05-18 01:41:46 +02:00
Albin Ahlbäck
7eab089f7c Revise after Fredrik's comments on uni. dist. rand 2021-05-16 03:22:35 +02:00
Albin Ahlbäck
59bb0b02c2 Add unif. dist. random numbers to header files 2021-05-15 21:00:11 +02:00
Albin Ahlbäck
1b57315373 arb method and docs for uni. dist. random numbers 2021-05-15 20:44:55 +02:00
Albin Ahlbäck
8511abb8b8 mag method and docs for uni. dist. random numbers 2021-05-15 20:44:35 +02:00
Albin Ahlbäck
ee53535d14 arf method and docs for uni. dist. random numbers 2021-05-15 20:41:46 +02:00
Fredrik Johansson
97c170cb1d
Merge pull request #362 from David-Berghaus/fix-aliasing-bug-for-mat_mul-of-windows
Fixed bug for aliased mat_mul of window matrices
2021-05-06 10:37:01 +02:00
Fredrik Johansson
637582ad48
Merge pull request #363 from orlitzky/GNUInstallDirs
CMakeLists.txt: support standard GNU installation directories
2021-04-09 07:01:01 +02:00
Michael Orlitzky
7a2704ffbf CMakeLists.txt: support standard GNU installation directories
Modern systems have varied naming schemes for their 32- and 64-bit
library directories. For example, Gentoo uses /usr/lib for 32-bit
libraries and /usr/lib64 for 64-bit libraries. The current default of
"lib" in CMakeLists.txt is therefore inappropriate in the common case
of a 64-bit build on Gentoo. Debian makes a similar (but different)
distinction.

This commit uses the GNUInstallDirs module to determine the library
directory, as well as all of the other standard GNU installation
directories. A sensible default exists, but the user now has the
ability to override these directories with the values appropriate for
his system. Distributions, in particular, can pass these values to the
build system in a consistent way.
2021-04-08 20:15:45 -04:00
David Berghaus
190cd45130 Fixed bug for aliased mat_mul of window matrices 2021-03-23 18:32:37 +01:00
fredrik
9c240a1e69 Merge branch 'master' of github.com:fredrik-johansson/arb 2021-03-15 18:21:10 +01:00
fredrik
b6c8032e2d compatibility fix for latest flint 2021-03-15 11:56:24 +01:00
Fredrik Johansson
b96f6ef949
Merge pull request #358 from hannorein/master
Rounding direction added to arb.h documentation
2021-01-29 08:56:38 +01:00
Hanno Rein
8dfab40228 Direction of rounding added to arb.h documentation. Related to #357. 2021-01-24 12:11:06 -05:00
fredrik
24c29e11d3 Merge branch 'master' of github.com:fredrik-johansson/arb 2021-01-13 10:59:02 +01:00
fredrik
a0f4ad85c7 change arb_get_str with ARB_STR_NO_RADIUS: [+/- 1.20e-15] -> 0e-14 (fixes #325) 2021-01-13 10:58:52 +01:00
Fredrik Johansson
93a08f0086
Merge pull request #356 from Joel-Dahne/doc-fix-csch
Fix documentation for acb_csch
2020-12-31 16:59:46 +01:00
Joel Dahne
674fa5feb1 Fix documentation for acb_csch 2020-12-25 19:00:19 +01:00
fredrik
170be3a16b update docs; call this 2.19.0 2020-12-06 13:42:40 +01:00
Fredrik Johansson
b7434bf502
Merge pull request #353 from p15-git-acc/print-format
use the right format specifiers for slong and ulong
2020-12-06 12:13:56 +01:00