mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Version 9.8
Also: - Drop upstreamed patches: -fes-build, -python3.11 - Add patches: -catch-value, -gap-split-root, -bind2nd, -mem-fun-ref
This commit is contained in:
parent
a560530636
commit
d510b9edac
15 changed files with 553 additions and 1223 deletions
20
sagemath-bind2nd.patch
Normal file
20
sagemath-bind2nd.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
diff -up src/sage/modular/arithgroup/farey.cpp.orig src/sage/modular/arithgroup/farey.cpp
|
||||
--- src/sage/modular/arithgroup/farey.cpp.orig 2023-02-11 06:25:15.000000000 -0700
|
||||
+++ src/sage/modular/arithgroup/farey.cpp 2023-03-13 12:54:35.465197691 -0600
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
+#include <functional>
|
||||
|
||||
#include <gmpxx.h>
|
||||
#include <Python.h>
|
||||
@@ -737,7 +738,7 @@ size_t FareySymbol::nu3() const {
|
||||
size_t FareySymbol::rank_pi() const {
|
||||
if( index() == 2 ) return 1;
|
||||
return count_if(pairing.begin(), pairing.end(),
|
||||
- bind2nd(greater<int>(), 0))/2;
|
||||
+ bind(greater<int>(), placeholders::_1, 0))/2;
|
||||
}
|
||||
|
||||
size_t FareySymbol::number_of_cusps() const {
|
Loading…
Add table
Add a link
Reference in a new issue