C# Класс 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)
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GF16 ( ) : System
fillLogTables ( ) : void

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

Описание методов

Add() публичный статический метод

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
Результат System.UInt16

Divide() публичный статический метод

a divide by b
public static Divide ( UInt16 numerator, UInt16 denominator ) : UInt16
numerator System.UInt16
denominator System.UInt16
Результат System.UInt16

Equals() публичный метод

public Equals ( object o ) : bool
o object
Результат bool

GF16() публичный метод

Ctor
public GF16 ( UInt16 i ) : System
i System.UInt16 Value
Результат System

GetHashCode() публичный метод

public GetHashCode ( ) : int
Результат int

Multiply() публичный статический метод

Multiply 2 operandes
public static Multiply ( UInt16 a, UInt16 b ) : UInt16
a System.UInt16 First operande
b System.UInt16 Second operande
Результат System.UInt16

Power() публичный метод

Power is used to create teh Vandermonde matrix
public Power ( int exponent ) : GF16
exponent int
Результат GF16

Power() публичный статический метод

public static Power ( UInt16 x, UInt32 exponent ) : UInt16
x System.UInt16
exponent System.UInt32
Результат System.UInt16

ToString() публичный метод

Overload of the string operator
public ToString ( ) : string
Результат string

operator() публичный статический метод

Overload the + operator
public static operator ( ) : GF16
Результат GF16