C# Class NewTOAPIA.Net.Rtp.GF16

A field is a set of numbers with an addition/subtraction operations as well as multiplication/division operation. The result of adding/subtracting or multiplying/dividing any two numbers of the field has to be in the set as well. A finite field contains only finitely many elements. A finite field is also called Galois Field in honor of Evariste Galois. The advantage of a finite-field arithmetic is that it can be done exactly by computer (error-correcting code). (*) Evariste Galois 1811 (Bourg-La-Reine, near Paris) - 1832 (Paris)
Afficher le fichier Open project: Wiladams/NewTOAPIA Class Usage Examples

Méthodes publiques

Méthode Description
Add ( UInt16 a, UInt16 b ) : UInt16

Add two number in GF8

The subtraction is the same as the addition because with Galois fields, each number is its own negative. So there is no need to have a Sub method

Divide ( UInt16 numerator, UInt16 denominator ) : UInt16

a divide by b

Equals ( object o ) : bool
GF16 ( UInt16 i ) : System

Ctor

GetHashCode ( ) : int
Multiply ( UInt16 a, UInt16 b ) : UInt16

Multiply 2 operandes

Power ( int exponent ) : GF16

Power is used to create teh Vandermonde matrix

Power ( UInt16 x, UInt32 exponent ) : UInt16
ToString ( ) : string

Overload of the string operator

operator ( ) : GF16

Overload the + operator

Private Methods

Méthode Description
GF16 ( ) : System
fillLogTables ( ) : void

Fill the log table. The log tables are used to facilitate multiplication and division.

Method Details

Add() public static méthode

Add two number in GF8
The subtraction is the same as the addition because with Galois fields, each number is its own negative. So there is no need to have a Sub method
public static Add ( UInt16 a, UInt16 b ) : UInt16
a System.UInt16 First number
b System.UInt16 Second number
Résultat System.UInt16

Divide() public static méthode

a divide by b
public static Divide ( UInt16 numerator, UInt16 denominator ) : UInt16
numerator System.UInt16
denominator System.UInt16
Résultat System.UInt16

Equals() public méthode

public Equals ( object o ) : bool
o object
Résultat bool

GF16() public méthode

Ctor
public GF16 ( UInt16 i ) : System
i System.UInt16 Value
Résultat System

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Multiply() public static méthode

Multiply 2 operandes
public static Multiply ( UInt16 a, UInt16 b ) : UInt16
a System.UInt16 First operande
b System.UInt16 Second operande
Résultat System.UInt16

Power() public méthode

Power is used to create teh Vandermonde matrix
public Power ( int exponent ) : GF16
exponent int
Résultat GF16

Power() public static méthode

public static Power ( UInt16 x, UInt32 exponent ) : UInt16
x System.UInt16
exponent System.UInt32
Résultat System.UInt16

ToString() public méthode

Overload of the string operator
public ToString ( ) : string
Résultat string

operator() public static méthode

Overload the + operator
public static operator ( ) : GF16
Résultat GF16