jzmaddock
1cb146a001
Merge branch 'develop' of https://github.com/boostorg/math into develop
2016-05-31 13:36:01 +01:00
jzmaddock
8cb9be7699
Change test data so it always uses the SC_ macro:
...
it helps multiprecision tests, and in particular allows us to test types whose precision varies at runtime.
2016-05-31 13:35:37 +01:00
jzmaddock
7499075a01
Recalculate cached constants if the precision changes in zeta.hpp.
2016-05-31 13:33:51 +01:00
jzmaddock
f02c9cba13
Calculate lgamma near 1 and 2 via series expansion in terms of zeta functions of integers.
...
Likewise for tgamma1pm1.
2016-05-31 13:33:08 +01:00
jzmaddock
609e8373b8
We can calculate the limit as an int, no need to invoke FP code.
2016-05-31 13:31:52 +01:00
jzmaddock
6961f14eb3
Don't initialize erf's cached constants for variable-precision types.
2016-05-31 13:30:54 +01:00
jzmaddock
bd39b86ca1
Warning suppression.
2016-05-31 10:12:20 +01:00
jzmaddock
fb8528e47b
Allow our cached data to be recalculated if the precision changes in unchecked_factorial.hpp.
2016-05-31 10:11:35 +01:00
jzmaddock
8b59c26e73
Warning disable.
2016-05-31 10:10:51 +01:00
jzmaddock
a97fedee55
Don't cache values for variable-precision types in precision.hpp
2016-05-31 10:10:07 +01:00
jzmaddock
cde7271817
Update bernoulli/polygamma code to avoid caching values if the precision has changed.
2016-05-31 10:09:15 +01:00
jzmaddock
04378a1a87
Warning disable in error_handling.hpp
2016-05-31 10:07:24 +01:00
jzmaddock
dd4db9a28c
Update constants to work with types whose precision varies.
2016-05-31 10:07:01 +01:00
jzmaddock
281e6d8bab
Mark operator bool as explicit in docs.
2016-05-26 18:41:50 +01:00
jzmaddock
f8ee91a84b
Merge pull request #39 from jeremy-murphy/polynomial_zero
...
operator bool() and set_zero(): test for zero and set to zero respectively.
2016-05-26 18:40:13 +01:00
jzmaddock
deb345b155
Merge pull request #42 from kundor/develop
...
Docs incorrectly refer to relative_distance, epsilon_distance
2016-05-24 12:42:00 +01:00
Kolya Matteo
6510793122
There's no such file as relative_distance.hpp
2016-05-23 14:17:09 -04:00
Jeremy W. Murphy
d922f95fd5
Merge branch 'develop' into polynomial_ufd_gcd
...
# Conflicts:
# include/boost/math/tools/polynomial.hpp
# test/test_polynomial.cpp
2016-05-16 09:48:15 +10:00
Jeremy W. Murphy
9558b22b6c
Update API documentation.
2016-05-15 21:07:15 +10:00
Jeremy W. Murphy
94526e54c7
Merge branch 'develop' into polynomial_zero
...
# Conflicts:
# test/test_polynomial.cpp
2016-05-15 21:03:12 +10:00
jzmaddock
30e7f76e76
Merge pull request #40 from kundor/polypow
...
pow function for polynomials
2016-05-15 09:50:07 +01:00
Jeremy W. Murphy
0fd22d787c
polynomial: Example documentation for test/set zero.
2016-05-15 18:32:17 +10:00
Kolya Matteo
42249f03e7
Simplify one and zero polynomial declarations
2016-05-13 09:06:36 -04:00
Jeremy W. Murphy
e608dc6657
Rename clear() to set_zero().
2016-05-13 18:27:31 +10:00
Jeremy W. Murphy
18a49862a9
Use typedef hack to prevent accidental conversion to an arithmetic type.
2016-05-12 21:02:34 +10:00
Kolya Matteo
5faad1baf8
Add polynomial pow function to docs
2016-05-11 16:18:42 -04:00
Kolya Matteo
c7d7a0ce6e
Add unit tests for polynomial pow
2016-05-11 15:05:13 -04:00
Kolya Matteo
51575f6474
Don't try pow to negative powers even for constants
...
This failed when pow(T,int) cannot be found. It was failing for
boost::multiprecision types.
2016-05-11 15:02:38 -04:00
Kolya Matteo
4c1a2eacef
Use default policy for error handling
2016-05-11 13:50:49 -04:00
Kolya Matteo
15e163b2a5
Throw an exception, instead of asserting
2016-05-11 13:50:49 -04:00
Kolya Matteo
f5fc788b4f
Fix merge
2016-05-11 13:50:49 -04:00
Kolya Matteo
141ef67b6a
Add pow() function for polynomials and integer powers.
2016-05-11 13:50:49 -04:00
Jeremy W. Murphy
a737a3f5c2
operator bool() and clear(): test for zero and set to zero respectively.
...
Checking for zero or non-zero and setting to zero are common operations,
so fast implementations
2016-05-11 14:02:16 +10:00
jzmaddock
bea587f3fd
Merge branch 'gcd_n' of https://github.com/jeremy-murphy/math into develop
...
# Resolved Conflicts:
# include/boost/math/common_factor_rt.hpp
# test/test_gcd.cpp
2016-05-09 18:59:17 +01:00
jzmaddock
c9bf1df944
Merge branch 'polynomial_shift' of https://github.com/jeremy-murphy/math into develop
...
# Resolved Conflicts:
# test/test_polynomial.cpp
2016-05-09 18:29:22 +01:00
jzmaddock
cace9b59de
Merge branch 'gcd' into develop
...
# Resolved Conflicts:
# test/test_polynomial.cpp
2016-05-09 18:15:54 +01:00
jzmaddock
993cdcb42e
Reduce dependencies by removing all use of Boost.Format.
...
We made only cursory use of the lib, so it's just as easy to do with it.
Also fixed a number of missing #includes which were hidden by including format.hpp.
2016-05-09 11:38:13 +01:00
jzmaddock
c5084fc77e
Add complex and polynomial test cases.
2016-05-08 16:54:24 +01:00
Jeremy W. Murphy
9e3ba7072a
Update Synopsis and Run-time determination sections of docs.
2016-05-08 22:06:39 +10:00
jzmaddock
b953a8cad6
Add better error handling tests.
2016-05-07 18:45:51 +01:00
jzmaddock
0e5f2ea229
Merge branch 'develop' of https://github.com/kundor/math into develop
2016-05-07 18:45:24 +01:00
Jeremy W. Murphy
a56745b479
Merge branch 'develop' into polynomial_ufd_gcd
...
# Conflicts:
# test/test_polynomial.cpp
2016-05-07 18:32:42 +10:00
Jeremy W. Murphy
a822400320
Merge branch 'develop' into polynomial_shift
...
# Conflicts:
# test/test_polynomial.cpp
2016-05-07 18:27:46 +10:00
Jeremy W. Murphy
e3101bc0eb
Return pair of <T, I> that includes the termination position.
2016-05-07 14:33:35 +10:00
Jeremy W. Murphy
ffd40ccb5f
Actually test n = 1 for gcd_range.
2016-05-07 11:01:57 +10:00
Jeremy W. Murphy
df8c6584dc
Rename gcd_n to gcd_range.
2016-05-07 10:58:43 +10:00
Kolya Matteo
8336375c78
Fix corner cases for raise_error
...
This enables raise_error to work when no %1% appears in the `function` or
`message` parameters and for types without numeric_limits specializations.
Also removes misformat when BOOST_NO_RTTI is defined.
2016-05-05 18:10:43 -04:00
jzmaddock
5ef9218016
Merge pull request #36 from kundor/develop
...
Additional polynomial units tests & small normalization bug
2016-05-02 19:30:05 +01:00
Kolya Matteo
430239841d
Add missing normalization in polynomial initializer_list assignment
2016-05-02 14:08:25 -04:00
Kolya Matteo
3d3a1f8d2a
Add tests for polynomial normalization with initializer lists (so the highest-degree term is nonzero)
2016-05-02 14:06:18 -04:00