#include <scalar.hpp>
The general interface for scalars.
Definition at line 24 of file scalar.hpp.
scalar | ( | ) | [inline] |
Definition at line 37 of file scalar.hpp.
Definition at line 40 of file scalar.hpp.
00040 { this->init(); let::assign(*this,x); }
scalar | ( | double | d | ) | [inline] |
Definition at line 41 of file scalar.hpp.
00041 {this->init(); 00042 let::assign(*this,d); 00043 //data=T(d); 00044 };
scalar | ( | signed long | sl | ) |
scalar | ( | unsigned long | ul | ) |
scalar | ( | int | si | ) |
scalar | ( | unsigned | x | ) | [inline] |
Definition at line 48 of file scalar.hpp.
00048 {this->init(); let::assign(*this,x);};
scalar | ( | const char * | string, | |
unsigned int | b = 10 | |||
) |
~scalar | ( | ) | [inline] |
Definition at line 55 of file scalar.hpp.
scalar | ( | ) | [inline] |
Definition at line 25 of file scalar_extended_integer.hpp.
00025 : data() {}
~scalar | ( | ) | [inline] |
Definition at line 28 of file scalar_extended_integer.hpp.
scalar | ( | int | si | ) | [inline] |
Definition at line 31 of file scalar_extended_integer.hpp.
00031 : data(scalar<MPZ>(si)) {}
scalar | ( | unsigned | si | ) | [inline] |
Definition at line 34 of file scalar_extended_integer.hpp.
00034 : data(scalar<MPZ>(si)) {}
scalar | ( | const char * | string, | |
unsigned int | base | |||
) | [inline] |
Definition at line 37 of file scalar_extended_integer.hpp.
00037 : data(scalar<MPZ>(string, base)) {}
Definition at line 40 of file scalar_extended_integer.hpp.
00040 : data(a, b, c) {}
scalar | ( | signed long int | sl | ) | [inline] |
Definition at line 43 of file scalar_extended_integer.hpp.
00043 : data(scalar<MPZ>(sl)) {}
scalar | ( | unsigned long int | ul | ) | [inline] |
Definition at line 46 of file scalar_extended_integer.hpp.
00046 : data(scalar<MPZ>(ul)) {}
Definition at line 49 of file scalar_extended_integer.hpp.
00049 : data(rhs.rep()) {}
scalar | ( | double | rhs | ) | [inline] |
Definition at line 52 of file scalar_extended_integer.hpp.
00052 : data(scalar<MPZ>(rhs)) {}
scalar | ( | ) | [inline] |
Definition at line 26 of file scalar_extended_rational.hpp.
00026 : data() {}
~scalar | ( | ) | [inline] |
Definition at line 29 of file scalar_extended_rational.hpp.
scalar | ( | int | si | ) | [inline] |
Definition at line 32 of file scalar_extended_rational.hpp.
00032 : data(scalar<MPQ>(si)) {}
scalar | ( | unsigned | si | ) | [inline] |
Definition at line 35 of file scalar_extended_rational.hpp.
00035 : data(scalar<MPQ>(si)) {}
scalar | ( | const char * | string, | |
unsigned int | base | |||
) | [inline] |
Definition at line 38 of file scalar_extended_rational.hpp.
00038 : data(scalar<MPQ>(string, base)) {}
Definition at line 41 of file scalar_extended_rational.hpp.
00041 : data(a, b, c) {}
scalar | ( | signed long int | sl | ) | [inline] |
Definition at line 44 of file scalar_extended_rational.hpp.
00044 : data(scalar<MPQ>(sl)) {}
scalar | ( | unsigned long int | ul | ) | [inline] |
Definition at line 47 of file scalar_extended_rational.hpp.
00047 : data(scalar<MPQ>(ul)) {}
Definition at line 50 of file scalar_extended_rational.hpp.
00050 : data(rhs.rep()) {}
scalar | ( | double | rhs | ) | [inline] |
Definition at line 53 of file scalar_extended_rational.hpp.
00053 : data(scalar<MPQ>(rhs)) {}
scalar | ( | ) | [inline] |
Definition at line 27 of file scalar_floating.hpp.
References scalar< T >::rep().
00027 { 00028 // cout<<"default construct "<<endl; 00029 mpf_init(&rep());}
Definition at line 32 of file scalar_floating.hpp.
References scalar< T >::rep().
00033 { 00034 //cout<<"const SCl "<<endl; 00035 mpf_init_set(&rep(),&rhs.rep()); 00036 }
scalar | ( | signed long int | sl | ) | [inline] |
Definition at line 48 of file scalar_floating.hpp.
References scalar< T >::rep().
00048 {mpf_init_set_si(&rep(),sl);}
scalar | ( | unsigned long int | ul | ) | [inline] |
Definition at line 51 of file scalar_floating.hpp.
References scalar< T >::rep().
00051 {mpf_init_set_ui(&rep(),ul);}
scalar | ( | int | si | ) | [inline] |
Definition at line 54 of file scalar_floating.hpp.
References scalar< T >::rep().
00054 { 00055 // cout<<"init set si "<<endl; 00056 mpf_init_set_si(&rep(), si);}
scalar | ( | const char * | string, | |
unsigned int | base | |||
) | [inline] |
Definition at line 59 of file scalar_floating.hpp.
References scalar< T >::rep().
scalar | ( | double | d | ) | [inline] |
Definition at line 66 of file scalar_floating.hpp.
References scalar< T >::rep().
00067 { 00068 //cout<<"je passe dans construct double "<<endl; 00069 mpf_init_set_d(&rep(),d); 00070 }
~scalar | ( | ) | [inline] |
Definition at line 72 of file scalar_floating.hpp.
References scalar< T >::rep().
00072 {mpf_clear(&rep());}
~scalar | ( | ) | [inline] |
Definition at line 27 of file scalar_integer.hpp.
References scalar< T >::rep().
00028 { 00029 //COUT <<"Delete mpz"<<endl; 00030 mpz_clear(&rep()); 00031 }
scalar | ( | ) | [inline] |
Definition at line 40 of file scalar_integer.hpp.
References scalar< T >::rep().
scalar | ( | signed long int | sl | ) | [inline] |
Definition at line 46 of file scalar_integer.hpp.
References scalar< T >::rep().
scalar | ( | unsigned long int | ul | ) | [inline] |
Definition at line 49 of file scalar_integer.hpp.
References scalar< T >::rep().
scalar | ( | int | si | ) | [inline] |
Definition at line 52 of file scalar_integer.hpp.
References scalar< T >::rep().
scalar | ( | const char * | s, | |
unsigned int | base | |||
) | [inline] |
Definition at line 55 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 63 of file scalar_integer.hpp.
References scalar< T >::rep().
00064 { 00065 //COUT <<"Init mpz"<<endl; 00066 //COUNT<MPZ>('c'); 00067 mpz_init_set(&rep(), &rhs.rep()); 00068 }
scalar | ( | ) | [inline] |
Definition at line 25 of file scalar_rational.hpp.
References scalar< T >::rep().
00025 {mpq_init(&rep());}
~scalar | ( | ) | [inline] |
Definition at line 27 of file scalar_rational.hpp.
References scalar< T >::rep().
00027 {mpq_clear(&rep());}
scalar | ( | int | si | ) | [inline] |
Definition at line 30 of file scalar_rational.hpp.
References scalar< T >::rep().
scalar | ( | unsigned | si | ) | [inline] |
Definition at line 34 of file scalar_rational.hpp.
References scalar< T >::rep().
scalar | ( | const char * | string, | |
unsigned int | base | |||
) | [inline] |
Definition at line 38 of file scalar_rational.hpp.
References scalar< T >::rep().
scalar | ( | signed long int | sl | ) | [inline] |
Definition at line 47 of file scalar_rational.hpp.
References scalar< T >::rep().
scalar | ( | unsigned long int | ul | ) | [inline] |
Definition at line 51 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 55 of file scalar_rational.hpp.
References scalar< T >::rep().
scalar | ( | double | rhs | ) | [inline] |
Definition at line 62 of file scalar_rational.hpp.
References scalar< T >::rep().
void abs | ( | ) | [inline] |
Definition at line 502 of file scalar_rational.hpp.
References scalar< T >::rep().
void abs | ( | ) | [inline] |
Definition at line 501 of file scalar_integer.hpp.
References scalar< T >::rep().
void abs | ( | ) | [inline] |
Definition at line 485 of file scalar_floating.hpp.
References scalar< T >::rep().
void abs | ( | ) | [inline] |
Definition at line 338 of file scalar_extended_rational.hpp.
void abs | ( | ) | [inline] |
Definition at line 315 of file scalar_extended_integer.hpp.
void abs | ( | ) |
void Div2Exp | ( | unsigned long | exponent_of_2 | ) | [inline] |
Definition at line 464 of file scalar_integer.hpp.
References scalar< T >::rep().
void Div2Exp | ( | unsigned long | exponent_of_2 | ) | [inline] |
Definition at line 479 of file scalar_floating.hpp.
References scalar< T >::rep().
void Div2Exp | ( | unsigned long | exponent_of_2 | ) |
void factorial | ( | unsigned long | n | ) | [inline] |
Definition at line 508 of file scalar_integer.hpp.
References scalar< T >::rep().
00509 { 00510 mpz_fac_ui(&rep(), n); 00511 }
void factorial | ( | unsigned long | n | ) |
Definition at line 470 of file scalar_integer.hpp.
References scalar< T >::rep().
void GCD | ( | const scalar< T > & | b2 | ) |
void init | ( | ) | [inline] |
Definition at line 22 of file scalar_rational.hpp.
References scalar< T >::rep().
00022 {mpq_init(&rep());}
void init | ( | ) | [inline] |
Definition at line 34 of file scalar_integer.hpp.
References scalar< T >::rep().
00035 { 00036 mpz_init(&rep()); 00037 }
void init | ( | ) | [inline] |
Definition at line 24 of file scalar_floating.hpp.
References scalar< T >::rep().
00024 {mpf_init(&rep());}
void init | ( | ) | [inline] |
Definition at line 23 of file scalar_extended_rational.hpp.
void init | ( | ) | [inline] |
Definition at line 22 of file scalar_extended_integer.hpp.
void Mod2Exp | ( | unsigned long | exponent_of_2 | ) | [inline] |
Definition at line 477 of file scalar_integer.hpp.
References scalar< T >::rep().
void Mod2Exp | ( | unsigned long | exponent_of_2 | ) |
void Mul2Exp | ( | unsigned long | exponent_of_2 | ) | [inline] |
Definition at line 483 of file scalar_integer.hpp.
References scalar< T >::rep().
void Mul2Exp | ( | unsigned long | exponent_of_2 | ) |
Definition at line 508 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 514 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 492 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 345 of file scalar_extended_rational.hpp.
Definition at line 322 of file scalar_extended_integer.hpp.
scalar<T>& negate | ( | ) |
bool operator!= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 123 of file scalar_rational.hpp.
References scalar< T >::rep().
00124 { 00125 return mpq_cmp_ui(&rep(), ul,1) != 0; 00126 }
bool operator!= | ( | int | si | ) | const [inline] |
Definition at line 117 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
bool operator!= | ( | long | sl | ) | const [inline] |
Definition at line 111 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
Definition at line 105 of file scalar_rational.hpp.
References scalar< T >::rep().
00106 { 00107 return mpq_cmp(&rep(), &rhs.rep()) != 0; 00108 }
bool operator!= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 126 of file scalar_integer.hpp.
References scalar< T >::rep().
00127 { 00128 return mpz_cmp_ui(&rep(), ul) != 0; 00129 }
bool operator!= | ( | int | si | ) | const [inline] |
Definition at line 121 of file scalar_integer.hpp.
References scalar< T >::rep().
00121 { 00122 return mpz_cmp_si(&rep(), (long) si) != 0; 00123 }
bool operator!= | ( | long | sl | ) | const [inline] |
Definition at line 116 of file scalar_integer.hpp.
References scalar< T >::rep().
00116 { 00117 return mpz_cmp_si(&rep(), sl) != 0; 00118 }
Definition at line 110 of file scalar_integer.hpp.
References scalar< T >::rep().
00111 { 00112 return mpz_cmp(&rep(), &rhs.rep()) != 0; 00113 }
bool operator!= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 114 of file scalar_floating.hpp.
References scalar< T >::rep().
00115 { 00116 return mpf_cmp_ui(&rep(), ul) != 0; 00117 }
bool operator!= | ( | int | si | ) | const [inline] |
Definition at line 109 of file scalar_floating.hpp.
References scalar< T >::rep().
00109 { 00110 return mpf_cmp_si(&rep(), (long) si) != 0; 00111 }
bool operator!= | ( | long | sl | ) | const [inline] |
Definition at line 104 of file scalar_floating.hpp.
References scalar< T >::rep().
00104 { 00105 return mpf_cmp_si(&rep(), sl) != 0; 00106 }
Definition at line 98 of file scalar_floating.hpp.
References scalar< T >::rep().
00099 { 00100 return mpf_cmp(&rep(), &rhs.rep()) != 0; 00101 }
bool operator!= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 81 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator!= | ( | int | si | ) | const [inline] |
Definition at line 78 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator!= | ( | long | sl | ) | const [inline] |
Definition at line 75 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 72 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00072 { return rep() != rhs.rep(); }
bool operator!= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 80 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator!= | ( | int | si | ) | const [inline] |
Definition at line 77 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator!= | ( | long | sl | ) | const [inline] |
Definition at line 74 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 71 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00071 { return rep() != rhs.rep(); }
bool operator!= | ( | unsigned long | ul | ) | const |
bool operator!= | ( | int | si | ) | const |
bool operator!= | ( | long | sl | ) | const |
bool operator!= | ( | const scalar< T > & | rhs | ) | const |
Definition at line 369 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 363 of file scalar_integer.hpp.
References scalar< T >::rep().
scalar<T>& operator%= | ( | unsigned long | rhs | ) |
scalar<T>& operator%= | ( | int | rhs | ) |
scalar<T>& operator%= | ( | unsigned | rhs | ) |
Definition at line 336 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 330 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 324 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 317 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 324 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 312 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 307 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 302 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 323 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 317 of file scalar_floating.hpp.
Definition at line 305 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 300 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 295 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 182 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 179 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 176 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 173 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00173 { rep() *= rhs.rep(); return *this; }
Definition at line 181 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 178 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 175 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 172 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00172 { rep() *= rhs.rep(); return *this; }
scalar<T>& operator*= | ( | long | rhs | ) |
scalar<T>& operator*= | ( | double | rhs | ) |
scalar<T>& operator*= | ( | unsigned long | rhs | ) |
scalar<T>& operator*= | ( | int | rhs | ) |
scalar<T>& operator*= | ( | unsigned | rhs | ) |
void operator++ | ( | ) | [inline] |
Definition at line 456 of file scalar_rational.hpp.
References scalar< T >::rep().
void operator++ | ( | ) | [inline] |
Definition at line 418 of file scalar_integer.hpp.
References scalar< T >::rep().
void operator++ | ( | ) | [inline] |
Definition at line 421 of file scalar_floating.hpp.
References scalar< T >::rep().
void operator++ | ( | ) | [inline] |
Definition at line 306 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00307 { 00308 ++rep().a; 00309 }
void operator++ | ( | ) | [inline] |
Definition at line 278 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00279 { 00280 ++rep().a; 00281 }
void operator++ | ( | ) |
Definition at line 275 of file scalar_rational.hpp.
Definition at line 267 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 259 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 249 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 267 of file scalar_integer.hpp.
Definition at line 257 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 251 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 245 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 260 of file scalar_floating.hpp.
Definition at line 250 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 244 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 233 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 156 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 153 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 150 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 147 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00147 { rep() += rhs.rep(); return *this; }
Definition at line 155 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 152 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 149 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 146 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00146 { rep() += rhs.rep(); return *this; }
scalar<T>& operator+= | ( | long | rhs | ) |
scalar<T>& operator+= | ( | double | rhs | ) |
scalar<T>& operator+= | ( | unsigned long | rhs | ) |
scalar<T>& operator+= | ( | int | rhs | ) |
scalar<T>& operator+= | ( | unsigned | rhs | ) |
void operator-- | ( | ) | [inline] |
Definition at line 464 of file scalar_rational.hpp.
References scalar< T >::rep().
void operator-- | ( | ) | [inline] |
Definition at line 425 of file scalar_integer.hpp.
References scalar< T >::rep().
void operator-- | ( | ) | [inline] |
Definition at line 428 of file scalar_floating.hpp.
References scalar< T >::rep().
void operator-- | ( | ) | [inline] |
Definition at line 313 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00314 { 00315 --rep().a; 00316 }
void operator-- | ( | ) | [inline] |
Definition at line 285 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00286 { 00287 --rep().a; 00288 }
void operator-- | ( | ) |
Definition at line 309 of file scalar_rational.hpp.
Definition at line 301 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 293 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 285 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 296 of file scalar_integer.hpp.
Definition at line 286 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 280 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 274 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 289 of file scalar_floating.hpp.
Definition at line 279 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 273 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 267 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 169 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 166 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 163 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 160 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00160 { rep() -= rhs.rep(); return *this; }
Definition at line 168 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 165 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 162 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 159 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00159 { rep() -= rhs.rep(); return *this; }
scalar<T>& operator-= | ( | long | rhs | ) |
scalar<T>& operator-= | ( | unsigned long | rhs | ) |
scalar<T>& operator-= | ( | int | rhs | ) |
scalar<T>& operator-= | ( | unsigned | rhs | ) |
Definition at line 373 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 366 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 359 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 352 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 345 of file scalar_rational.hpp.
References scalar< T >::rep().
Definition at line 349 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 343 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 336 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 360 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 348 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 342 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 335 of file scalar_floating.hpp.
References scalar< T >::rep().
Definition at line 195 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 192 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 189 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 186 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00186 { rep() /= rhs.rep(); return *this; }
Definition at line 194 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 191 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 188 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 185 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00185 { rep() /= rhs.rep(); return *this; }
scalar<T>& operator/= | ( | long | rhs | ) |
scalar<T>& operator/= | ( | unsigned long | rhs | ) |
scalar<T>& operator/= | ( | int | rhs | ) |
scalar<T>& operator/= | ( | unsigned | rhs | ) |
bool operator< | ( | unsigned long | ul | ) | const [inline] |
Definition at line 197 of file scalar_rational.hpp.
References scalar< T >::rep().
00198 { 00199 return mpq_cmp_ui(&rep(), ul, 1) < 0; 00200 }
bool operator< | ( | int | si | ) | const [inline] |
Definition at line 190 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
bool operator< | ( | long | sl | ) | const [inline] |
Definition at line 185 of file scalar_rational.hpp.
References scalar< T >::rep().
00185 { 00186 return mpq_cmp_ui(&rep(), sl, 1) < 0; 00187 }
Definition at line 179 of file scalar_rational.hpp.
References scalar< T >::rep().
00180 { 00181 return mpq_cmp(&rep(), &rhs.rep()) < 0; 00182 }
bool operator< | ( | unsigned long | ul | ) | const [inline] |
Definition at line 195 of file scalar_integer.hpp.
References scalar< T >::rep().
00196 { 00197 return mpz_cmp_ui(&rep(), ul) < 0; 00198 }
bool operator< | ( | int | si | ) | const [inline] |
Definition at line 189 of file scalar_integer.hpp.
References scalar< T >::rep().
00190 { 00191 return mpz_cmp_si(&rep(), (long) si) < 0; 00192 }
bool operator< | ( | long | sl | ) | const [inline] |
Definition at line 184 of file scalar_integer.hpp.
References scalar< T >::rep().
00184 { 00185 return mpz_cmp_si(&rep(), sl) < 0; 00186 }
Definition at line 178 of file scalar_integer.hpp.
References scalar< T >::rep().
00179 { 00180 return mpz_cmp(&rep(), &rhs.rep()) < 0; 00181 }
bool operator< | ( | unsigned long | ul | ) | const [inline] |
Definition at line 183 of file scalar_floating.hpp.
References scalar< T >::rep().
00184 { 00185 return mpf_cmp_ui(&rep(), ul) < 0; 00186 }
bool operator< | ( | int | si | ) | const [inline] |
Definition at line 177 of file scalar_floating.hpp.
References scalar< T >::rep().
00178 { 00179 return mpf_cmp_si(&rep(), (long) si) < 0; 00180 }
bool operator< | ( | long | sl | ) | const [inline] |
Definition at line 172 of file scalar_floating.hpp.
References scalar< T >::rep().
00172 { 00173 return mpf_cmp_si(&rep(), sl) < 0; 00174 }
Definition at line 166 of file scalar_floating.hpp.
References scalar< T >::rep().
00167 { 00168 return mpf_cmp(&rep(), &rhs.rep()) < 0; 00169 }
bool operator< | ( | unsigned long | ul | ) | const [inline] |
Definition at line 120 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator< | ( | int | si | ) | const [inline] |
Definition at line 117 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator< | ( | long | sl | ) | const [inline] |
Definition at line 114 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 111 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00111 { return rep() < rhs.rep(); }
bool operator< | ( | unsigned long | ul | ) | const [inline] |
Definition at line 119 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator< | ( | int | si | ) | const [inline] |
Definition at line 116 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator< | ( | long | sl | ) | const [inline] |
Definition at line 113 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 110 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00110 { return rep() < rhs.rep(); }
bool operator< | ( | unsigned long | ul | ) | const |
bool operator< | ( | int | si | ) | const |
bool operator< | ( | long | sl | ) | const |
bool operator< | ( | const scalar< T > & | rhs | ) | const |
bool operator<= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 224 of file scalar_rational.hpp.
References scalar< T >::rep().
00225 { 00226 return mpq_cmp_ui(&rep(), ul, 1) <= 0; 00227 }
bool operator<= | ( | int | si | ) | const [inline] |
Definition at line 217 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
bool operator<= | ( | long | sl | ) | const [inline] |
Definition at line 211 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
Definition at line 205 of file scalar_rational.hpp.
References scalar< T >::rep().
00206 { 00207 return mpq_cmp(&rep(), &rhs.rep()) <= 0; 00208 }
bool operator<= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 220 of file scalar_integer.hpp.
References scalar< T >::rep().
00221 { 00222 return mpz_cmp_ui(&rep(), ul) <= 0; 00223 }
bool operator<= | ( | int | si | ) | const [inline] |
Definition at line 214 of file scalar_integer.hpp.
References scalar< T >::rep().
00215 { 00216 return mpz_cmp_si(&rep(), (long) si) <= 0; 00217 }
bool operator<= | ( | long | sl | ) | const [inline] |
Definition at line 209 of file scalar_integer.hpp.
References scalar< T >::rep().
00209 { 00210 return mpz_cmp_si(&rep(), sl) <= 0; 00211 }
Definition at line 203 of file scalar_integer.hpp.
References scalar< T >::rep().
00204 { 00205 return mpz_cmp(&rep(), &rhs.rep()) <= 0; 00206 }
bool operator<= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 208 of file scalar_floating.hpp.
References scalar< T >::rep().
00209 { 00210 return mpf_cmp_ui(&rep(), ul) <= 0; 00211 }
bool operator<= | ( | int | si | ) | const [inline] |
Definition at line 202 of file scalar_floating.hpp.
References scalar< T >::rep().
00203 { 00204 return mpf_cmp_si(&rep(), (long) si) <= 0; 00205 }
bool operator<= | ( | long | sl | ) | const [inline] |
Definition at line 197 of file scalar_floating.hpp.
References scalar< T >::rep().
00197 { 00198 return mpf_cmp_si(&rep(), sl) <= 0; 00199 }
Definition at line 191 of file scalar_floating.hpp.
References scalar< T >::rep().
00192 { 00193 return mpf_cmp(&rep(), &rhs.rep()) <= 0; 00194 }
bool operator<= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 133 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator<= | ( | int | si | ) | const [inline] |
Definition at line 130 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator<= | ( | long | sl | ) | const [inline] |
Definition at line 127 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 124 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00124 { return rep() <= rhs.rep(); }
bool operator<= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 132 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator<= | ( | int | si | ) | const [inline] |
Definition at line 129 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator<= | ( | long | sl | ) | const [inline] |
Definition at line 126 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 123 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00123 { return rep() <= rhs.rep(); }
bool operator<= | ( | unsigned long | ul | ) | const |
bool operator<= | ( | int | si | ) | const |
bool operator<= | ( | long | sl | ) | const |
bool operator<= | ( | const scalar< T > & | rhs | ) | const |
Definition at line 243 of file scalar_rational.hpp.
References scalar< T >::rep().
00244 { 00245 mpq_set_si(&rep(), ul, 1); return *this; 00246 }
Definition at line 237 of file scalar_rational.hpp.
References scalar< T >::rep().
00238 { 00239 mpq_set_si(&rep(), sl, 1); return *this; 00240 }
Definition at line 231 of file scalar_rational.hpp.
References scalar< T >::rep().
00232 { 00233 mpq_set_ui(&rep(), ul, 1); return *this; 00234 }
Definition at line 69 of file scalar_rational.hpp.
References scalar< T >::rep().
00070 { 00071 // COUNT<MPQ>('='); 00072 //if (this != &rhs) 00073 //mpq_clear(&rep()); 00074 //mpq_init(&rep()); 00075 mpq_set(&rep(), &rhs.rep()); 00076 return *this; 00077 }
Definition at line 239 of file scalar_integer.hpp.
References scalar< T >::rep().
00240 { 00241 mpz_init_set_si(&(this->rep()), ul); return *this; 00242 }
Definition at line 233 of file scalar_integer.hpp.
References scalar< T >::rep().
00234 { 00235 mpz_set_si(&rep(), sl); return *this; 00236 }
Definition at line 227 of file scalar_integer.hpp.
References scalar< T >::rep().
00228 { 00229 mpz_set_ui(&rep(), ul); return *this; 00230 }
Definition at line 79 of file scalar_integer.hpp.
References scalar< T >::rep().
00080 { 00081 //COUNT<MPZ>('='); 00082 mpz_set_ui(&rep(), rhs); 00083 return *this; 00084 }
Definition at line 72 of file scalar_integer.hpp.
References scalar< T >::rep().
00073 { 00074 //COUNT<MPZ>('='); 00075 if (this != &rhs) mpz_set(&rep(), &rhs.rep()); 00076 return *this; 00077 }
Definition at line 227 of file scalar_floating.hpp.
References scalar< T >::rep().
00228 { 00229 mpf_set_si(&rep(), ul); return *this; 00230 }
Definition at line 221 of file scalar_floating.hpp.
References scalar< T >::rep().
00222 { 00223 mpf_set_si(&rep(), sl); return *this; 00224 }
Definition at line 215 of file scalar_floating.hpp.
References scalar< T >::rep().
00216 { 00217 mpf_set_ui(&rep(), ul); return *this; 00218 }
Definition at line 39 of file scalar_floating.hpp.
References scalar< T >::rep().
00040 { 00041 if (this != &rhs) { 00042 mpf_set(&rep(), &rhs.rep()); 00043 } 00044 return *this; 00045 }
Definition at line 143 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 140 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 137 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 56 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00056 { rep() = rhs.rep(); return *this; }
Definition at line 142 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 139 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 136 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 55 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00055 { rep() = rhs.rep(); return *this; }
scalar<T>& operator= | ( | long | rhs | ) |
scalar<T>& operator= | ( | unsigned long | rhs | ) |
scalar<T>& operator= | ( | int | rhs | ) |
scalar<T>& operator= | ( | unsigned | rhs | ) |
bool operator== | ( | unsigned long | ul | ) | const [inline] |
Definition at line 98 of file scalar_rational.hpp.
References scalar< T >::rep().
00099 { 00100 return mpq_cmp_ui(&rep(), ul, 1) == 0; 00101 }
bool operator== | ( | int | si | ) | const [inline] |
Definition at line 93 of file scalar_rational.hpp.
References scalar< T >::rep().
00093 { 00094 return mpq_cmp_ui(&rep(), (long) si, 1) == 0; 00095 }
bool operator== | ( | long | sl | ) | const [inline] |
Definition at line 86 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
Definition at line 80 of file scalar_rational.hpp.
References scalar< T >::rep().
00081 { 00082 return mpq_cmp(&rep(), &rhs.rep()) == 0; 00083 }
bool operator== | ( | unsigned long | ul | ) | const [inline] |
Definition at line 103 of file scalar_integer.hpp.
References scalar< T >::rep().
00104 { 00105 return mpz_cmp_ui(&rep(), ul) == 0; 00106 }
bool operator== | ( | int | si | ) | const [inline] |
Definition at line 98 of file scalar_integer.hpp.
References scalar< T >::rep().
00098 { 00099 return mpz_cmp_si(&rep(), (long) si) == 0; 00100 }
bool operator== | ( | long | sl | ) | const [inline] |
Definition at line 93 of file scalar_integer.hpp.
References scalar< T >::rep().
00093 { 00094 return mpz_cmp_si(&rep(), sl) == 0; 00095 }
Definition at line 87 of file scalar_integer.hpp.
References scalar< T >::rep().
00088 { 00089 return mpz_cmp(&rep(), &rhs.rep()) == 0; 00090 }
bool operator== | ( | unsigned long | ul | ) | const [inline] |
Definition at line 91 of file scalar_floating.hpp.
References scalar< T >::rep().
00092 { 00093 return mpf_cmp_ui(&rep(), ul) == 0; 00094 }
bool operator== | ( | int | si | ) | const [inline] |
Definition at line 86 of file scalar_floating.hpp.
References scalar< T >::rep().
00086 { 00087 return mpf_cmp_si(&rep(), (long) si) == 0; 00088 }
bool operator== | ( | long | sl | ) | const [inline] |
Definition at line 81 of file scalar_floating.hpp.
References scalar< T >::rep().
00081 { 00082 return mpf_cmp_si(&rep(), sl) == 0; 00083 }
Definition at line 75 of file scalar_floating.hpp.
References scalar< T >::rep().
00076 { 00077 return mpf_cmp(&rep(), &rhs.rep()) == 0; 00078 }
bool operator== | ( | unsigned long | ul | ) | const [inline] |
Definition at line 68 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator== | ( | int | si | ) | const [inline] |
Definition at line 65 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator== | ( | long | sl | ) | const [inline] |
Definition at line 62 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 59 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00059 { return rep() == rhs.rep(); }
bool operator== | ( | unsigned long | ul | ) | const [inline] |
Definition at line 67 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator== | ( | int | si | ) | const [inline] |
Definition at line 64 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator== | ( | long | sl | ) | const [inline] |
Definition at line 61 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 58 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00058 { return rep() == rhs.rep(); }
bool operator== | ( | unsigned long | ul | ) | const |
bool operator== | ( | int | si | ) | const |
bool operator== | ( | long | sl | ) | const |
bool operator== | ( | const scalar< T > & | rhs | ) | const |
bool operator> | ( | unsigned long | ul | ) | const [inline] |
Definition at line 147 of file scalar_rational.hpp.
References scalar< T >::rep().
00148 { 00149 return mpq_cmp_ui(&rep(), ul,1) > 0; 00150 }
bool operator> | ( | int | si | ) | const [inline] |
Definition at line 141 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
bool operator> | ( | long | sl | ) | const [inline] |
Definition at line 135 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
Definition at line 129 of file scalar_rational.hpp.
References scalar< T >::rep().
00130 { 00131 return mpq_cmp(&rep(), &rhs.rep()) > 0; 00132 }
bool operator> | ( | unsigned long | ul | ) | const [inline] |
Definition at line 148 of file scalar_integer.hpp.
References scalar< T >::rep().
00149 { 00150 return mpz_cmp_ui(&rep(), ul) > 0; 00151 }
bool operator> | ( | int | si | ) | const [inline] |
Definition at line 143 of file scalar_integer.hpp.
References scalar< T >::rep().
00143 { 00144 return mpz_cmp_si(&rep(), (long) si) > 0; 00145 }
bool operator> | ( | long | sl | ) | const [inline] |
Definition at line 138 of file scalar_integer.hpp.
References scalar< T >::rep().
00138 { 00139 return mpz_cmp_si(&rep(), sl) > 0; 00140 }
Definition at line 132 of file scalar_integer.hpp.
References scalar< T >::rep().
00133 { 00134 return mpz_cmp(&rep(), &rhs.rep()) > 0; 00135 }
bool operator> | ( | unsigned long | ul | ) | const [inline] |
Definition at line 136 of file scalar_floating.hpp.
References scalar< T >::rep().
00137 { 00138 return mpf_cmp_ui(&rep(), ul) > 0; 00139 }
bool operator> | ( | int | si | ) | const [inline] |
Definition at line 131 of file scalar_floating.hpp.
References scalar< T >::rep().
00131 { 00132 return mpf_cmp_si(&rep(), (long) si) > 0; 00133 }
bool operator> | ( | long | sl | ) | const [inline] |
Definition at line 126 of file scalar_floating.hpp.
References scalar< T >::rep().
00126 { 00127 return mpf_cmp_si(&rep(), sl) > 0; 00128 }
Definition at line 120 of file scalar_floating.hpp.
References scalar< T >::rep().
00121 { 00122 return mpf_cmp(&rep(), &rhs.rep()) > 0; 00123 }
bool operator> | ( | unsigned long | ul | ) | const [inline] |
Definition at line 94 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator> | ( | int | si | ) | const [inline] |
Definition at line 91 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator> | ( | long | sl | ) | const [inline] |
Definition at line 88 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 85 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00085 { return rep() > rhs.rep(); }
bool operator> | ( | unsigned long | ul | ) | const [inline] |
Definition at line 93 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator> | ( | int | si | ) | const [inline] |
Definition at line 90 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator> | ( | long | sl | ) | const [inline] |
Definition at line 87 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 84 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00084 { return rep() > rhs.rep(); }
bool operator> | ( | unsigned long | ul | ) | const |
bool operator> | ( | int | si | ) | const |
bool operator> | ( | long | sl | ) | const |
bool operator> | ( | const scalar< T > & | rhs | ) | const |
bool operator>= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 172 of file scalar_rational.hpp.
References scalar< T >::rep().
00173 { 00174 return mpq_cmp_ui(&rep(), ul, 1) >= 0; 00175 }
bool operator>= | ( | int | si | ) | const [inline] |
Definition at line 165 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
bool operator>= | ( | long | sl | ) | const [inline] |
Definition at line 159 of file scalar_rational.hpp.
References assert, and scalar< T >::rep().
Definition at line 153 of file scalar_rational.hpp.
References scalar< T >::rep().
00154 { 00155 return mpq_cmp(&rep(), &rhs.rep()) >= 0; 00156 }
bool operator>= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 171 of file scalar_integer.hpp.
References scalar< T >::rep().
00172 { 00173 return mpz_cmp_ui(&rep(), ul) >= 0; 00174 }
bool operator>= | ( | int | si | ) | const [inline] |
Definition at line 165 of file scalar_integer.hpp.
References scalar< T >::rep().
00166 { 00167 return mpz_cmp_si(&rep(), (long) si) >= 0; 00168 }
bool operator>= | ( | long | sl | ) | const [inline] |
Definition at line 160 of file scalar_integer.hpp.
References scalar< T >::rep().
00160 { 00161 return mpz_cmp_si(&rep(), sl) >= 0; 00162 }
Definition at line 154 of file scalar_integer.hpp.
References scalar< T >::rep().
00155 { 00156 return mpz_cmp(&rep(), &rhs.rep()) >= 0; 00157 }
bool operator>= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 159 of file scalar_floating.hpp.
References scalar< T >::rep().
00160 { 00161 return mpf_cmp_ui(&rep(), ul) >= 0; 00162 }
bool operator>= | ( | int | si | ) | const [inline] |
Definition at line 153 of file scalar_floating.hpp.
References scalar< T >::rep().
00154 { 00155 return mpf_cmp_si(&rep(), (long) si) >= 0; 00156 }
bool operator>= | ( | long | sl | ) | const [inline] |
Definition at line 148 of file scalar_floating.hpp.
References scalar< T >::rep().
00148 { 00149 return mpf_cmp_si(&rep(), sl) >= 0; 00150 }
Definition at line 142 of file scalar_floating.hpp.
References scalar< T >::rep().
00143 { 00144 return mpf_cmp(&rep(), &rhs.rep()) >= 0; 00145 }
bool operator>= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 107 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator>= | ( | int | si | ) | const [inline] |
Definition at line 104 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
bool operator>= | ( | long | sl | ) | const [inline] |
Definition at line 101 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
Definition at line 98 of file scalar_extended_rational.hpp.
References scalar< T >::rep().
00098 { return rep() >= rhs.rep(); }
bool operator>= | ( | unsigned long | ul | ) | const [inline] |
Definition at line 106 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator>= | ( | int | si | ) | const [inline] |
Definition at line 103 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
bool operator>= | ( | long | sl | ) | const [inline] |
Definition at line 100 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
Definition at line 97 of file scalar_extended_integer.hpp.
References scalar< T >::rep().
00097 { return rep() >= rhs.rep(); }
bool operator>= | ( | unsigned long | ul | ) | const |
bool operator>= | ( | int | si | ) | const |
bool operator>= | ( | long | sl | ) | const |
bool operator>= | ( | const scalar< T > & | rhs | ) | const |
Definition at line 529 of file scalar_integer.hpp.
References scalar< T >::rep().
00530 { 00531 mpz_ui_pow_ui(&rep(), base, exp); return *this; 00532 }
Definition at line 523 of file scalar_integer.hpp.
References scalar< T >::rep().
scalar<T>& pow | ( | unsigned long | base, | |
unsigned long | exp | |||
) |
scalar<T>& pow | ( | unsigned long | exp | ) |
Definition at line 495 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 489 of file scalar_integer.hpp.
References scalar< T >::rep().
void PowMod | ( | unsigned long | exp, | |
const scalar< T > & | m | |||
) |
void quo | ( | unsigned long | divisor | ) | [inline] |
Definition at line 541 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 535 of file scalar_integer.hpp.
References scalar< T >::rep().
void quo | ( | unsigned long | divisor | ) |
void quo | ( | const scalar< T > & | divisor | ) |
unsigned long rem | ( | unsigned long | divisor | ) | [inline] |
Definition at line 553 of file scalar_integer.hpp.
References scalar< T >::rep().
Definition at line 547 of file scalar_integer.hpp.
References scalar< T >::rep().
unsigned long rem | ( | unsigned long | divisor | ) |
void rem | ( | const scalar< T > & | divisor | ) |
Referenced by mmx::rem().
const T& rep | ( | ) | const [inline] |
Definition at line 31 of file scalar.hpp.
00031 {return (*data);}
T& rep | ( | ) | [inline] |
Definition at line 30 of file scalar.hpp.
Referenced by scalar< T >::abs(), mmx::as_charp(), mmx::as_double(), mmx::assign(), mmx::BigIntToSL(), mmx::BigIntToUL(), mmx::bit_precision(), mmx::bit_size(), mmx::compare(), mmx::convert(), as_helper< double, scalar< MPZ > >::cv(), as_helper< double, RR >::cv(), as_helper< RR, double >::cv(), as_helper< ZZ, double >::cv(), as_helper< ZZ, unsigned >::cv(), as_helper< RR, QQ >::cv(), as_helper< QQ, RR >::cv(), as_helper< QQ, ZZ >::cv(), mmx::denominator(), scalar< T >::Div2Exp(), mmx::DivMod(), mmx::ExtGCD(), scalar< T >::factorial(), mmx::gcd(), scalar< T >::GCD(), mmx::HalfExtGCD(), scalar< T >::init(), mmx::IsEven(), mmx::IsMinusOne(), mmx::IsNegative(), mmx::IsOdd(), mmx::IsOne(), mmx::IsPerfectSquare(), mmx::IsPositive(), mmx::IsProbablyPrime(), mmx::IsZero(), mmx::log(), scalar< T >::Mod2Exp(), scalar< T >::Mul2Exp(), scalar< T >::negate(), mmx::numerator(), scalar< T >::operator!=(), scalar< T >::operator%=(), mmx::operator*(), scalar< T >::operator*=(), mmx::operator+(), scalar< T >::operator++(), scalar< T >::operator+=(), mmx::operator-(), scalar< T >::operator--(), scalar< T >::operator-=(), mmx::operator/(), scalar< T >::operator/=(), scalar< T >::operator<(), mmx::operator<<(), mmx::operator<<=(), scalar< T >::operator<=(), scalar< T >::operator=(), scalar< T >::operator==(), scalar< T >::operator>(), scalar< T >::operator>=(), mmx::operator>>(), mmx::pow(), scalar< T >::pow(), scalar< T >::PowMod(), mmx::Precision(), mmx::print(), scalar< T >::quo(), mmx::QuoRem(), scalar< T >::rem(), scalar< T >::scalar(), mmx::sign(), scalar< T >::sqrt(), mmx::SqrtRem(), mmx::to_double(), and scalar< T >::~scalar().
00030 {return (*data);}
void sqrt | ( | ) | [inline] |
Definition at line 559 of file scalar_integer.hpp.
References scalar< T >::rep().
void sqrt | ( | ) | [inline] |
Definition at line 500 of file scalar_floating.hpp.
References scalar< T >::rep().
void sqrt | ( | ) |
Definition at line 29 of file scalar.hpp.
Referenced by scalar< NT >::rep().