An element of the ring Z_2.  
 More...
#include <ringz2.h>
 | 
| bool  | _n | 
|   | The number corresponding to the ring element.  More...
  | 
|   | 
 | 
| bool  | divide (const tZ2 &a, const tZ2 &b, tZ2 "ient, tZ2 &remainder) | 
|   | Performs the division with remainder in the ring.  More...
  | 
|   | 
An element of the ring Z_2. 
Definition at line 47 of file ringz2.h.
 
◆ tZ2() [1/2]
Default constructor of a ring element. 
Note: The default copy constructor, destructor, and assignment operators are fine. 
Definition at line 98 of file ringz2.h.
Referenced by operator>>().
 
 
◆ tZ2() [2/2]
Constructor from an integer number (to be used mainly for 0 or 1). 
Definition at line 103 of file ringz2.h.
References _n.
 
 
◆ delta()
  
  
      
        
          | int tZ2::delta  | 
          ( | 
          void  | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
The delta function. 
Definition at line 115 of file ringz2.h.
References _n.
 
 
◆ invert()
Inverts the ring element. 
Definition at line 125 of file ringz2.h.
References _n.
 
 
◆ negate()
Negates the ring element. 
Definition at line 120 of file ringz2.h.
 
 
◆ operator int()
  
  
      
        
          | tZ2::operator int  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Conversion to an integer. 
Note that in some rings this conversion may not be valid. 
Definition at line 110 of file ringz2.h.
References _n.
 
 
◆ operator*=()
  
  
      
        
          | tZ2 & tZ2::operator*=  | 
          ( | 
          const tZ2 &  | 
          another | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Multiplies by another ring element. 
Definition at line 139 of file ringz2.h.
References _n.
 
 
◆ operator+=()
  
  
      
        
          | tZ2 & tZ2::operator+=  | 
          ( | 
          const tZ2 &  | 
          another | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Adds another ring element. 
Definition at line 132 of file ringz2.h.
References _n.
 
 
◆ ringsymbol()
  
  
      
        
          | std::string tZ2::ringsymbol  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Returns the symbol of the ring. 
Definition at line 156 of file ringz2.h.
 
 
◆ swap()
  
  
      
        
          | void tZ2::swap  | 
          ( | 
          tZ2 &  | 
          another | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Swaps the internal data with another ring element. 
Definition at line 146 of file ringz2.h.
References _n.
 
 
◆ divide
  
  
      
        
          | bool divide  | 
          ( | 
          const tZ2 &  | 
          a,  | 
         
        
           | 
           | 
          const tZ2 &  | 
          b,  | 
         
        
           | 
           | 
          tZ2 &  | 
          quotient,  | 
         
        
           | 
           | 
          tZ2 &  | 
          remainder  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Performs the division with remainder in the ring. 
Returns true if the remainer is zero, false otherwise. 
 
 
◆ _n
The documentation for this class was generated from the following file: