diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2020-03-30 12:40:37 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2020-03-30 12:40:37 +0000 |
commit | d9d39e0a5bc6edefd4a4abb1a12d94e08730ecff (patch) | |
tree | ab5fb79451e1c558c37da987e0c0dfe0c3311706 /math/lcalc/files/patch-include_Lcommon.h | |
parent | Upgrade to v.2.9.0. (diff) |
Adding lcalc, the L-function c++ class library and, the command line program
lcalc, to be used by SageMath.
Remark: this is not the latest version, but the one currently used by Sage,
with their patches.
Notes
Notes:
svn path=/head/; revision=529880
Diffstat (limited to 'math/lcalc/files/patch-include_Lcommon.h')
-rw-r--r-- | math/lcalc/files/patch-include_Lcommon.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/math/lcalc/files/patch-include_Lcommon.h b/math/lcalc/files/patch-include_Lcommon.h new file mode 100644 index 000000000000..d387a197612f --- /dev/null +++ b/math/lcalc/files/patch-include_Lcommon.h @@ -0,0 +1,16 @@ +--- include/Lcommon.h.orig 2020-03-29 15:43:34 UTC ++++ include/Lcommon.h +@@ -1,3 +1,4 @@ ++// Patches borrowed from SageMath. + // When MPFR is enabled and double is passed to a templated function + // The function should use precise(ttype) to make sure calculations run + // within the more precise type +@@ -48,7 +49,7 @@ const bool outputSeries=true; // Whether to output t + + // Loop i from m to n + // Useful in tidying up most for loops +-#define loop(i,m,n) for(typeof(m) i=(m); i!=(n); i++) ++#define loop(i,m,n) for(auto i=(m); i!=(n); i++) + + // A class for calculations involving polynomials of small degree + // Not efficient enough for huge polynomials |