@@ -64,7 +64,6 @@ namespace numeric {
64
64
%ignore integer::integer (mpz_t &&) noexcept ;
65
65
%ignore integer::integer (integer&&) noexcept ;
66
66
%ignore integer::operator =;
67
- %ignore integer::operator ==;
68
67
69
68
} // -- namespace numeric
70
69
} // -- namespace lal
@@ -74,22 +73,22 @@ namespace numeric {
74
73
namespace lal {
75
74
namespace numeric {
76
75
77
- %template (integer) integer::integer<int64_t , std::enable_if_t <true , bool > = true >;
78
- %template (set_number) integer::set_number<int64_t , std::enable_if_t <true , bool > = true >;
79
- %template (__eq__) integer::operator == <int64_t , std::enable_if_t <true , bool > = true >;
80
- %template (__neq__) integer::operator != <int64_t , std::enable_if_t <true , bool > = true >;
81
- %template (__lt__) integer::operator < <int64_t , std::enable_if_t <true , bool > = true >;
82
- %template (__le__) integer::operator <= <int64_t , std::enable_if_t <true , bool > = true >;
83
- %template (__gt__) integer::operator > <int64_t , std::enable_if_t <true , bool > = true >;
84
- %template (__ge__) integer::operator >= <int64_t , std::enable_if_t <true , bool > = true >;
85
- %template (__add__) integer::operator + <int64_t , std::enable_if_t <true , bool > = true >;
86
- %template (__sub__) integer::operator - <int64_t , std::enable_if_t <true , bool > = true >;
87
- %template (__mul__) integer::operator * <int64_t , std::enable_if_t <true , bool > = true >;
88
- %template (__truediv__) integer::operator / <int64_t , std::enable_if_t <true , bool > = true >;
89
- %template (__iadd__) integer::operator += <int64_t , std::enable_if_t <true , bool > = true >;
90
- %template (__isub__) integer::operator -= <int64_t , std::enable_if_t <true , bool > = true >;
91
- %template (__imul__) integer::operator *= <int64_t , std::enable_if_t <true , bool > = true >;
92
- %template (__itruediv__) integer::operator /= <int64_t , std::enable_if_t <true , bool > = true >;
76
+ %template (integer) integer::integer<const int64_t , std::enable_if_t <true , bool > = true >;
77
+ %template (set_number) integer::set_number<const int64_t , std::enable_if_t <true , bool > = true >;
78
+ %template (__eq__) integer::operator == <const int64_t , std::enable_if_t <true , bool > = true >;
79
+ %template (__neq__) integer::operator != <const int64_t , std::enable_if_t <true , bool > = true >;
80
+ %template (__lt__) integer::operator < <const int64_t , std::enable_if_t <true , bool > = true >;
81
+ %template (__le__) integer::operator <= <const int64_t , std::enable_if_t <true , bool > = true >;
82
+ %template (__gt__) integer::operator > <const int64_t , std::enable_if_t <true , bool > = true >;
83
+ %template (__ge__) integer::operator >= <const int64_t , std::enable_if_t <true , bool > = true >;
84
+ %template (__add__) integer::operator + <const int64_t , std::enable_if_t <true , bool > = true >;
85
+ %template (__sub__) integer::operator - <const int64_t , std::enable_if_t <true , bool > = true >;
86
+ %template (__mul__) integer::operator * <const int64_t , std::enable_if_t <true , bool > = true >;
87
+ %template (__truediv__) integer::operator / <const int64_t , std::enable_if_t <true , bool > = true >;
88
+ %template (__iadd__) integer::operator += <const int64_t , std::enable_if_t <true , bool > = true >;
89
+ %template (__isub__) integer::operator -= <const int64_t , std::enable_if_t <true , bool > = true >;
90
+ %template (__imul__) integer::operator *= <const int64_t , std::enable_if_t <true , bool > = true >;
91
+ %template (__itruediv__) integer::operator /= <const int64_t , std::enable_if_t <true , bool > = true >;
93
92
94
93
} // -- namespace numeric
95
94
} // -- namespace lal
@@ -101,7 +100,6 @@ namespace numeric {
101
100
%ignore rational::rational (integer&&, integer&&) noexcept ;
102
101
%ignore rational::rational (rational&&) noexcept ;
103
102
%ignore rational::operator =;
104
- %ignore rational::operator ==;
105
103
106
104
} // -- namespace numeric
107
105
} // -- namespace lal
@@ -111,22 +109,22 @@ namespace numeric {
111
109
namespace lal {
112
110
namespace numeric {
113
111
114
- %template (rational) rational::rational<int64_t , std::enable_if_t <true , bool > = true >;
115
- %template (set_number) rational::set_number<int64_t , std::enable_if_t <true , bool > = true >;
116
- %template (__eq__) rational::operator == <int64_t , std::enable_if_t <true , bool > = true >;
117
- %template (__neq__) rational::operator != <int64_t , std::enable_if_t <true , bool > = true >;
118
- %template (__lt__) rational::operator < <int64_t , std::enable_if_t <true , bool > = true >;
119
- %template (__le__) rational::operator <= <int64_t , std::enable_if_t <true , bool > = true >;
120
- %template (__gt__) rational::operator > <int64_t , std::enable_if_t <true , bool > = true >;
121
- %template (__ge__) rational::operator >= <int64_t , std::enable_if_t <true , bool > = true >;
122
- %template (__add__) rational::operator + <int64_t , std::enable_if_t <true , bool > = true >;
123
- %template (__sub__) rational::operator - <int64_t , std::enable_if_t <true , bool > = true >;
124
- %template (__mul__) rational::operator * <int64_t , std::enable_if_t <true , bool > = true >;
125
- %template (__truediv__) rational::operator / <int64_t , std::enable_if_t <true , bool > = true >;
126
- %template (__iadd__) rational::operator += <int64_t , std::enable_if_t <true , bool > = true >;
127
- %template (__isub__) rational::operator -= <int64_t , std::enable_if_t <true , bool > = true >;
128
- %template (__imul__) rational::operator *= <int64_t , std::enable_if_t <true , bool > = true >;
129
- %template (__itruediv__) rational::operator /= <int64_t , std::enable_if_t <true , bool > = true >;
112
+ %template (rational) rational::rational<const int64_t , std::enable_if_t <true , bool > = true >;
113
+ %template (set_number) rational::set_number<const int64_t , std::enable_if_t <true , bool > = true >;
114
+ %template (__eq__) rational::operator == <const int64_t , std::enable_if_t <true , bool > = true >;
115
+ %template (__neq__) rational::operator != <const int64_t , std::enable_if_t <true , bool > = true >;
116
+ %template (__lt__) rational::operator < <const int64_t , std::enable_if_t <true , bool > = true >;
117
+ %template (__le__) rational::operator <= <const int64_t , std::enable_if_t <true , bool > = true >;
118
+ %template (__gt__) rational::operator > <const int64_t , std::enable_if_t <true , bool > = true >;
119
+ %template (__ge__) rational::operator >= <const int64_t , std::enable_if_t <true , bool > = true >;
120
+ %template (__add__) rational::operator + <const int64_t , std::enable_if_t <true , bool > = true >;
121
+ %template (__sub__) rational::operator - <const int64_t , std::enable_if_t <true , bool > = true >;
122
+ %template (__mul__) rational::operator * <const int64_t , std::enable_if_t <true , bool > = true >;
123
+ %template (__truediv__) rational::operator / <const int64_t , std::enable_if_t <true , bool > = true >;
124
+ %template (__iadd__) rational::operator += <const int64_t , std::enable_if_t <true , bool > = true >;
125
+ %template (__isub__) rational::operator -= <const int64_t , std::enable_if_t <true , bool > = true >;
126
+ %template (__imul__) rational::operator *= <const int64_t , std::enable_if_t <true , bool > = true >;
127
+ %template (__itruediv__) rational::operator /= <const int64_t , std::enable_if_t <true , bool > = true >;
130
128
131
129
} // -- namespace numeric
132
130
} // -- namespace lal
0 commit comments