Givaro 4.2.1
gmp++_int_misc.C File Reference

miscing stuff. More...

#include <iostream>
#include <cmath>
#include "gmp++/gmp++.h"
#include <sstream>

Namespaces

namespace  Givaro
 Namespace in which the whole Givaro library resides.
 
namespace  Givaro::Protected
 

Functions

Integer fact (uint64_t l)
 
Integersqrt (Integer &r, const Integer &p)
 
Integersqrtrem (Integer &r, const Integer &p, Integer &rem)
 
Integer sqrt (const Integer &p)
 
Integer sqrtrem (const Integer &p, Integer &rem)
 
bool root (Integer &q, const Integer &a, uint32_t n)
 
void swap (Integer &a, Integer &b)
 
double naturallog (const Integer &a)
 
bool isOdd (const Integer &a)
 Tests parity of an integer.
 
int64_t logp (const Integer &a, const Integer &p)
 
double logtwo (const Integer &a)
 
int32_t probab_prime (const Integer &p, int32_t r=_GIVARO_ISPRIMETESTS_)
 
Integernextprime (Integer &, const Integer &p)
 
Integerprevprime (Integer &, const Integer &p)
 
int32_t kronecker (const Integer &u, const Integer &v)
 
int32_t jacobi (const Integer &u, const Integer &v)
 
int32_t legendre (const Integer &u, const Integer &v)
 
uint64_t length (const Integer &a)
 
Integer abs (const Integer &n)
 

Detailed Description

miscing stuff.