@@ -64,7 +64,6 @@ namespace numeric {
6464 %ignore integer::integer (mpz_t &&) noexcept ;
6565 %ignore integer::integer (integer&&) noexcept ;
6666 %ignore integer::operator =;
67- %ignore integer::operator ==;
6867
6968} // -- namespace numeric
7069} // -- namespace lal
@@ -74,22 +73,22 @@ namespace numeric {
7473namespace lal {
7574namespace numeric {
7675
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 >;
9392
9493} // -- namespace numeric
9594} // -- namespace lal
@@ -101,7 +100,6 @@ namespace numeric {
101100 %ignore rational::rational (integer&&, integer&&) noexcept ;
102101 %ignore rational::rational (rational&&) noexcept ;
103102 %ignore rational::operator =;
104- %ignore rational::operator ==;
105103
106104} // -- namespace numeric
107105} // -- namespace lal
@@ -111,22 +109,22 @@ namespace numeric {
111109namespace lal {
112110namespace numeric {
113111
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 >;
130128
131129} // -- namespace numeric
132130} // -- namespace lal
0 commit comments