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::GFRandom ( )
inline

Definition at line 34 of file cf_random.h.

34 {};
GFRandom::~GFRandom ( )
inline

Definition at line 35 of file cf_random.h.

35 {}
GFRandom::GFRandom ( )
inline

Definition at line 835 of file factory.h.

835 {};
GFRandom::~GFRandom ( )
inline

Definition at line 836 of file factory.h.

836 {}
GFRandom::GFRandom ( )
inline

Definition at line 835 of file factory.h.

835 {};
GFRandom::~GFRandom ( )
inline

Definition at line 836 of file factory.h.

836 {}

Member Function Documentation

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
CFRandom* GFRandom::clone ( ) const
virtual

Reimplemented from CFRandom.

CFRandom* GFRandom::clone ( ) const
virtual

Reimplemented from CFRandom.

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
CanonicalForm GFRandom::generate ( ) const
virtual

Reimplemented from CFRandom.

CanonicalForm GFRandom::generate ( ) const
virtual

Reimplemented from CFRandom.


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