My Project  debian-1:4.1.1-p2+ds-4build3
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 839 of file factory.h.

839 {};

◆ ~GFRandom() [2/3]

GFRandom::~GFRandom ( )
inline

Definition at line 840 of file factory.h.

840 {}

◆ GFRandom() [3/3]

GFRandom::GFRandom ( )
inline

Definition at line 839 of file factory.h.

839 {};

◆ ~GFRandom() [3/3]

GFRandom::~GFRandom ( )
inline

Definition at line 840 of file factory.h.

840 {}

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 }

◆ 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 }

◆ 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:
gf_q1
int gf_q1
Definition: gfops.cc:50
GFRandom::GFRandom
GFRandom()
Definition: cf_random.h:34
CanonicalForm
factory's main class
Definition: canonicalform.h:83
i
int i
Definition: cfEzgcd.cc:125
gf_q
int gf_q
Definition: gfops.cc:47
factoryrandom
int factoryrandom(int n)
random integers with abs less than n
Definition: cf_random.cc:168
int2imm_gf
InternalCF * int2imm_gf(long i)
Definition: imm.h:106