Public Member Functions
GFRandom Class Reference

generate random elements in GF More...

#include <cf_random.h>

Public Member Functions

 GFRandom ()
 
 ~GFRandom ()
 
CanonicalForm generate () const
 
CFRandomclone () const
 
 GFRandom ()
 
 ~GFRandom ()
 
CanonicalForm generate () const
 
CFRandomclone () const
 
 GFRandom ()
 
 ~GFRandom ()
 
CanonicalForm generate () const
 
CFRandomclone () const
 
- Public Member Functions inherited from CFRandom
virtual ~CFRandom ()
 
virtual ~CFRandom ()
 
virtual ~CFRandom ()
 

Detailed Description

generate random elements in GF

Definition at line 31 of file cf_random.h.

Constructor & Destructor Documentation

§ GFRandom() [1/3]

GFRandom::GFRandom ( )
inline

Definition at line 34 of file cf_random.h.

34 {};

§ ~GFRandom() [1/3]

GFRandom::~GFRandom ( )
inline

Definition at line 35 of file cf_random.h.

35 {}

§ GFRandom() [2/3]

GFRandom::GFRandom ( )
inline

Definition at line 835 of file factory.h.

835 {};

§ ~GFRandom() [2/3]

GFRandom::~GFRandom ( )
inline

Definition at line 836 of file factory.h.

836 {}

§ GFRandom() [3/3]

GFRandom::GFRandom ( )
inline

Definition at line 835 of file factory.h.

835 {};

§ ~GFRandom() [3/3]

GFRandom::~GFRandom ( )
inline

Definition at line 836 of file factory.h.

836 {}

Member Function Documentation

§ clone() [1/3]

CFRandom * GFRandom::clone ( ) const
virtual

Reimplemented from CFRandom.

Definition at line 73 of file cf_random.cc.

74 {
75  return new GFRandom();
76 }
GFRandom()
Definition: cf_random.h:34

§ clone() [2/3]

CFRandom* GFRandom::clone ( ) const
virtual

Reimplemented from CFRandom.

§ clone() [3/3]

CFRandom* GFRandom::clone ( ) const
virtual

Reimplemented from CFRandom.

§ generate() [1/3]

CanonicalForm GFRandom::generate ( ) const
virtual

Reimplemented from CFRandom.

Definition at line 66 of file cf_random.cc.

67 {
68  int i= factoryrandom( gf_q );
69  if ( i == gf_q1 ) i++;
70  return CanonicalForm( int2imm_gf( i ) );
71 }
int gf_q1
Definition: gfops.cc:50
int factoryrandom(int n)
random integers with abs less than n
Definition: cf_random.cc:168
factory&#39;s main class
Definition: canonicalform.h:75
int gf_q
Definition: gfops.cc:47
InternalCF * int2imm_gf(long i)
Definition: imm.h:102
int i
Definition: cfEzgcd.cc:123

§ generate() [2/3]

CanonicalForm GFRandom::generate ( ) const
virtual

Reimplemented from CFRandom.

§ generate() [3/3]

CanonicalForm GFRandom::generate ( ) const
virtual

Reimplemented from CFRandom.


The documentation for this class was generated from the following files: