コード例 #1
0
 public ExtensionFieldElement(ExtensionField ExtField, Polynomial ElementValue)
 {
     this.Value = ElementValue;
     this.Field = ExtField;
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: hktaskin/FiniteFieldTools
 private void Form1_Load(object sender, EventArgs e)
 {
     GF5 = new FiniteField(5);
     GF56Primitive = new Polynomial(GF5, 2, 0, 1, 4, 1, 0, 1);
     ExtF = new ExtensionField(GF56Primitive);
     lblInfo.Text = "Current Field Info: " + ExtF.ToString();
 }
コード例 #3
0
        public static ExtensionFieldElement One(ExtensionField F)
        {
            ExtensionFieldElement one = new ExtensionFieldElement(F, new Polynomial(F.DefiningPolynomial.Field, 1));

            return(one);
        }
コード例 #4
0
        public static ExtensionFieldElement Zero(ExtensionField F)
        {
            ExtensionFieldElement zero = new ExtensionFieldElement(F, new Polynomial(F.DefiningPolynomial.Field, 0));

            return(zero);
        }
コード例 #5
0
 public static ExtensionFieldElement Zero(ExtensionField F)
 {
     ExtensionFieldElement zero = new ExtensionFieldElement(F, new Polynomial(F.DefiningPolynomial.Field, 0));
     return zero;
 }
コード例 #6
0
 public static ExtensionFieldElement One(ExtensionField F)
 {
     ExtensionFieldElement one = new ExtensionFieldElement(F, new Polynomial(F.DefiningPolynomial.Field, 1));
     return one;
 }
コード例 #7
0
 public ExtensionFieldElement(ExtensionField ExtField, Polynomial ElementValue)
 {
     this.Value = ElementValue;
     this.Field = ExtField;
 }