Commit graph

108 commits

Author SHA1 Message Date
Fredrik Johansson
8b2c1704f0 use flint fft mpn_mul 2022-05-18 15:43:00 +02:00
fredrik
c3a944c54d fix a compiler warning 2022-04-02 13:47:39 +02:00
fredrik
5d8822781e add arf_equal_ui, arf_equal_d (fixes #381) 2022-01-14 14:38:15 +01:00
fredrik
915022dc31 add arf_get_str; rewrite arf_fprintd 2022-01-14 14:22:16 +01:00
fredrik
d188914df2 fix memory leak in arf_load_file (thanks Dave Platt) 2021-09-17 12:49:36 +02:00
fredrik
7748f0230c add arf_fma, arb_fma, arb_fma_ui 2021-07-25 12:41:17 +02:00
Albin Ahlbäck
f4fe05b8a2 Fix urandom stuff 2021-05-18 22:52:35 +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
ee53535d14 arf method and docs for uni. dist. random numbers 2021-05-15 20:41:46 +02:00
p15-git-acc
75cf01c68a use the right format specifiers for slong and ulong 2020-11-12 16:41:19 -06:00
fredrik
89f53d9d0f tmpfile checks: exclude mingw too 2020-06-23 13:48:42 +02:00
fredrik
caf9bb7825 mp_bitcnt_t -> flint_bitcnt_t 2020-06-22 23:48:09 +02:00
fredrik
9891019fed assume tmpfile() is broken on windows 2020-06-09 09:37:32 +02:00
fredrik
f433b7597e change arf_get_mpfr to return an MPFR underflow/overflow result instead of throwing flint_abort() if the exponent is out of bounds 2020-03-30 12:34:08 +02:00
fredrik
d24c150006 fix a compiler warning 2020-01-23 17:39:36 +01:00
fredrik
eb7bb53559 fix warnings 2019-10-14 14:18:01 -04:00
Julian Rüth
bd9cc1a913
normalize file names 2019-10-05 18:35:58 +02:00
Julian Rüth
57f4739e43
Add serialization arb/arf/mag_load/dump_str/file 2019-10-05 17:56:24 +02:00
fredrik
a7d9c0b1c1 mpfr 4.0 deprecated mpfr_root 2018-02-11 00:41:38 +01:00
Fredrik Johansson
bd243ec590 arf_set_d, fmpr_set_d: fix handling of subnormals 2017-08-11 02:26:16 +02:00
Fredrik Johansson
e71718411e silence compiler warnings caused by flint_abort 2017-06-18 17:06:17 +02:00
Tommy Hofmann
6bf072eb59 Replace abort with flint_abort.
This will allow us to not loose the julia session on error.
See also https://github.com/wbhart/flint2/pull/243
2017-02-28 16:52:57 +01:00
Fredrik Johansson
109afaab0f add arf_sosq (sum of squares) 2017-02-18 15:56:00 +01:00
Isuru Fernando
d59759a951 Fix weird bug in CMake exporting 2016-11-06 23:37:40 +05:30
Fredrik Johansson
06df4d6dcb wrapper for zeta algorithms 2016-10-25 21:57:37 +02:00
Fredrik Johansson
2789e4555a add arf_cmp_si, arf_cmp_ui, arf_cmp_d 2016-10-11 13:12:22 +02:00
Fredrik Johansson
6316497cf5 de-inline clear() methods -> 8% faster compile, 25% smaller libarb.so 2016-07-05 00:26:55 +02:00
Fredrik Johansson
d9660d9d9b restore arf t-add_si 2016-06-12 13:13:10 +02:00
Fredrik Johansson
ef7b2d5fc7 test arf_div with rounding-to-nearest 2016-04-29 15:02:36 +02:00
Fredrik Johansson
13bbbd92c6 add arf_frexp 2016-04-29 13:50:05 +02:00
Fredrik Johansson
95fbab4a2e revert debug code 2016-04-28 01:51:19 +02:00
Fredrik Johansson
6815df6eca test ARF_RND_NEAR in addition-related methods 2016-04-28 01:40:39 +02:00
Fredrik Johansson
f2afe67fac fix bug in last commit 2016-04-28 01:40:19 +02:00
Fredrik Johansson
b6a273370f support ARF_RND_NEAR in _arf_set_round_ui/uiui 2016-04-27 23:20:35 +02:00
Fredrik Johansson
ecb70e7476 update copyright headers to switch from GPL to LGPL 2016-04-26 17:20:05 +02:00
Fredrik Johansson
f33e51ff93 remove unused code chunk 2016-04-15 16:20:01 +02:00
Fredrik Johansson
ce31cfdc05 arf_neg_round supports ARF_RND_NEAR; add test code 2016-04-15 15:39:35 +02:00
Fredrik Johansson
16f6ebd87b support ARF_RND_NEAR in arf_mul_* methods 2016-04-15 15:27:34 +02:00
Fredrik Johansson
bbdf4f9c52 move handling of ARF_RND_NEAR to _arf_set_round_mpn 2016-04-15 15:11:08 +02:00
Fredrik Johansson
3286690aa1 fix a very rare but serious bug: mag_addmul(x,x,x) with x = 0.1111...1111 -> non-normalized mag_t value 2016-04-10 23:54:20 +02:00
Fredrik Johansson
b4ebc87a1d use arb_test_multiplier to control number of test iterations 2016-04-10 17:24:58 +02:00
Fredrik Johansson
b9aab31961 support round-to-nearest in arf_set_round 2016-03-07 17:53:54 +01:00
Fredrik Johansson
80640c87e2 include flint/foo.h instead of foo.h 2016-03-03 15:42:23 +01:00
Fredrik Johansson
2ba00389d6 move _arf_set_mpn_fixed to its own file and document it 2016-02-28 02:29:20 +01:00
Fredrik Johansson
ecf90c9c5f move _arf_get_integer_mpn to its own file and document it 2016-02-28 02:07:04 +01:00
Fredrik Johansson
493234ef86 arf_get_fmpz: optimize the last cases, optimize the fmpz_fixed versions, and test more 2016-02-26 16:57:19 +01:00
Fredrik Johansson
3fa073651f un-inline arf_is_int, arf_is_int_2exp_si; small optimization of arf_is_int; add test code 2016-02-26 13:54:10 +01:00
Fredrik Johansson
8c5d26de65 arf_get_fmpz: speed up rounding to nearest in common cases 2016-02-25 15:03:09 +01:00
alex
aef5f68625 DOC: more carefully preserve authorship info 2016-01-01 17:25:30 -05:00