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)
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA 1 사용 예제들

공개 메소드들

메소드 설명
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