Borderbasix

Macros | Typedefs | Functions
Scl_mpz.hpp File Reference
#include <string>
#include "Scl.hpp"

Go to the source code of this file.

Macros

#define _MPZ_
 

Typedefs

typedef MP_INT MPZ
 

Functions

Scl< MPZoperator+ (const Scl< MPZ > &a1, const Scl< MPZ > &a2)
 
Scl< MPZoperator- (const Scl< MPZ > &a1, const Scl< MPZ > &a2)
 
Scl< MPZoperator* (const Scl< MPZ > &a1, const Scl< MPZ > &a2)
 
Scl< MPZoperator/ (const Scl< MPZ > &a, const Scl< MPZ > &b)
 
Scl< MPZoperator% (const Scl< MPZ > &a, const Scl< MPZ > &b)
 
void convert (Scl< MPZ > &n, char *s)
 
std::ostream & operator<< (std::ostream &os, const Scl< MPZ > &b)
 
std::istream & operator>> (std::istream &is, Scl< MPZ > &b)
 
void SqrtRem (Scl< MPZ > &sqrt, Scl< MPZ > &rem, const Scl< MPZ > &b)
 
void QuoRem (Scl< MPZ > &q, Scl< MPZ > &r, const Scl< MPZ > &divdend, const Scl< MPZ > &divisor)
 
unsigned long QuoRem (Scl< MPZ > &q, Scl< MPZ > &r, const Scl< MPZ > &divdend, unsigned long divisor)
 
void DivMod (Scl< MPZ > &q, Scl< MPZ > &r, const Scl< MPZ > &divdend, const Scl< MPZ > &divisor)
 
void DivMod (Scl< MPZ > &q, Scl< MPZ > &r, const Scl< MPZ > &divdend, unsigned long divisor)
 
void ExtGCD (Scl< MPZ > &gcd, Scl< MPZ > &a, Scl< MPZ > &b, const Scl< MPZ > &x, const Scl< MPZ > &y)
 
void HalfExtGCD (Scl< MPZ > &gcd, Scl< MPZ > &a, const Scl< MPZ > &x, const Scl< MPZ > &y)
 
unsigned long BigIntToUL (const Scl< MPZ > &b)
 
signed long BigIntToSL (const Scl< MPZ > &b)
 
size_t log (const Scl< MPZ > &b)
 
size_t log (const Scl< MPZ > &b, int base)
 
int sign (const Scl< MPZ > &b)
 
int compare (const Scl< MPZ > &b1, const Scl< MPZ > &b2)
 
int compare (const Scl< MPZ > &b, unsigned long ul)
 
int compare (const Scl< MPZ > &b, long sl)
 
bool IsPositive (const Scl< MPZ > &b)
 
bool IsNegative (const Scl< MPZ > &b)
 
bool IsZero (const Scl< MPZ > &b)
 
bool IsOne (const Scl< MPZ > &b)
 
bool IsMinusOne (const Scl< MPZ > &b)
 
bool IsOdd (const Scl< MPZ > &b)
 
bool IsEven (const Scl< MPZ > &b)
 
bool IsPerfectSquare (const Scl< MPZ > &b)
 
bool IsProbablyPrime (const Scl< MPZ > &b, int reps)
 
bool has_positive_sign (const Scl< MPZ > &x)
 

Macro Definition Documentation

#define _MPZ_

Typedef Documentation

typedef MP_INT MPZ

Function Documentation

signed long BigIntToSL ( const Scl< MPZ > &  b)
inline
unsigned long BigIntToUL ( const Scl< MPZ > &  b)
inline
int compare ( const Scl< MPZ > &  b1,
const Scl< MPZ > &  b2 
)
inline
int compare ( const Scl< MPZ > &  b,
unsigned long  ul 
)
inline
int compare ( const Scl< MPZ > &  b,
long  sl 
)
inline
void convert ( Scl< MPZ > &  n,
char *  s 
)
inline
void DivMod ( Scl< MPZ > &  q,
Scl< MPZ > &  r,
const Scl< MPZ > &  divdend,
const Scl< MPZ > &  divisor 
)
inline
void DivMod ( Scl< MPZ > &  q,
Scl< MPZ > &  r,
const Scl< MPZ > &  divdend,
unsigned long  divisor 
)
inline
void ExtGCD ( Scl< MPZ > &  gcd,
Scl< MPZ > &  a,
Scl< MPZ > &  b,
const Scl< MPZ > &  x,
const Scl< MPZ > &  y 
)
inline
void HalfExtGCD ( Scl< MPZ > &  gcd,
Scl< MPZ > &  a,
const Scl< MPZ > &  x,
const Scl< MPZ > &  y 
)
inline
bool has_positive_sign ( const Scl< MPZ > &  x)
bool IsEven ( const Scl< MPZ > &  b)
inline
bool IsMinusOne ( const Scl< MPZ > &  b)
inline
bool IsNegative ( const Scl< MPZ > &  b)
inline
bool IsOdd ( const Scl< MPZ > &  b)
inline
bool IsOne ( const Scl< MPZ > &  b)
inline
bool IsPerfectSquare ( const Scl< MPZ > &  b)
inline
bool IsPositive ( const Scl< MPZ > &  b)
inline
bool IsProbablyPrime ( const Scl< MPZ > &  b,
int  reps 
)
inline
bool IsZero ( const Scl< MPZ > &  b)
inline
size_t log ( const Scl< MPZ > &  b)
inline
size_t log ( const Scl< MPZ > &  b,
int  base 
)
inline
Scl<MPZ> operator% ( const Scl< MPZ > &  a,
const Scl< MPZ > &  b 
)
Scl<MPZ> operator* ( const Scl< MPZ > &  a1,
const Scl< MPZ > &  a2 
)
Scl<MPZ> operator+ ( const Scl< MPZ > &  a1,
const Scl< MPZ > &  a2 
)
Scl<MPZ> operator- ( const Scl< MPZ > &  a1,
const Scl< MPZ > &  a2 
)
Scl<MPZ> operator/ ( const Scl< MPZ > &  a,
const Scl< MPZ > &  b 
)
std::ostream& operator<< ( std::ostream &  os,
const Scl< MPZ > &  b 
)
std::istream& operator>> ( std::istream &  is,
Scl< MPZ > &  b 
)
void QuoRem ( Scl< MPZ > &  q,
Scl< MPZ > &  r,
const Scl< MPZ > &  divdend,
const Scl< MPZ > &  divisor 
)
inline
unsigned long QuoRem ( Scl< MPZ > &  q,
Scl< MPZ > &  r,
const Scl< MPZ > &  divdend,
unsigned long  divisor 
)
inline
int sign ( const Scl< MPZ > &  b)
inline
void SqrtRem ( Scl< MPZ > &  sqrt,
Scl< MPZ > &  rem,
const Scl< MPZ > &  b 
)
inline
Home  |  Download & InstallContributions