C# 클래스 MpcLib.Common.FiniteField.Polynomial

파일 보기 프로젝트 열기: mahdiz/mpclib 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetRoots ( ) : List

TODO: Performance improvement: This is a naive soultion, find a better solution from the web

Polynomial ( IList coeffs ) : System
Polynomial ( Zp coeffs ) : System
Polynomial ( int coeffs, int coeffsFieldSize ) : System
Sample ( Zp SamplePoint ) : Zp
ToString ( ) : string
divideWithRemainder ( Polynomial p ) : Polynomial
hanfetzPolynom ( int degree, int prime ) : Polynomial
multiply ( Polynomial p ) : Polynomial

비공개 메소드들

메소드 설명
init ( List coeffs ) : void

메소드 상세

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetRoots() 공개 메소드

TODO: Performance improvement: This is a naive soultion, find a better solution from the web
public GetRoots ( ) : List
리턴 List

Polynomial() 공개 메소드

public Polynomial ( IList coeffs ) : System
coeffs IList
리턴 System

Polynomial() 공개 메소드

public Polynomial ( Zp coeffs ) : System
coeffs Zp
리턴 System

Polynomial() 공개 메소드

public Polynomial ( int coeffs, int coeffsFieldSize ) : System
coeffs int
coeffsFieldSize int
리턴 System

Sample() 공개 메소드

public Sample ( Zp SamplePoint ) : Zp
SamplePoint Zp - the desired sampling point.
리턴 Zp

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

divideWithRemainder() 공개 메소드

public divideWithRemainder ( Polynomial p ) : Polynomial
p Polynomial
리턴 Polynomial

hanfetzPolynom() 공개 정적인 메소드

public static hanfetzPolynom ( int degree, int prime ) : Polynomial
degree int
prime int
리턴 Polynomial

multiply() 공개 메소드

public multiply ( Polynomial p ) : Polynomial
p Polynomial
리턴 Polynomial