C# Class MpcLib.Common.FiniteField.Polynomial

Afficher le fichier Open project: mahdiz/mpclib Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
init ( List coeffs ) : void

Method Details

Equals() public méthode

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

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetRoots() public méthode

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

Polynomial() public méthode

public Polynomial ( IList coeffs ) : System
coeffs IList
Résultat System

Polynomial() public méthode

public Polynomial ( Zp coeffs ) : System
coeffs Zp
Résultat System

Polynomial() public méthode

public Polynomial ( int coeffs, int coeffsFieldSize ) : System
coeffs int
coeffsFieldSize int
Résultat System

Sample() public méthode

public Sample ( Zp SamplePoint ) : Zp
SamplePoint Zp - the desired sampling point.
Résultat Zp

ToString() public méthode

public ToString ( ) : string
Résultat string

divideWithRemainder() public méthode

public divideWithRemainder ( Polynomial p ) : Polynomial
p Polynomial
Résultat Polynomial

hanfetzPolynom() public static méthode

public static hanfetzPolynom ( int degree, int prime ) : Polynomial
degree int
prime int
Résultat Polynomial

multiply() public méthode

public multiply ( Polynomial p ) : Polynomial
p Polynomial
Résultat Polynomial