コード例 #1
0
 public override uint ModularSum(uint a, uint b, uint modulus)
 {
     return(IntegerMath.ModularSum(a, b, modulus));
 }
コード例 #2
0
 public override Rational ModularSum(Rational a, Rational b, Rational modulus)
 {
     return(IntegerMath.ModularSum((BigInteger)a, (BigInteger)b, (BigInteger)modulus));
 }
コード例 #3
0
 public override IResidue <ulong> Add(IResidue <ulong> x)
 {
     r = IntegerMath.ModularSum(r, GetRep(x), reducer.modulus);
     return(this);
 }
コード例 #4
0
 public override ulong ModularSum(ulong a, ulong b, ulong modulus)
 {
     return(IntegerMath.ModularSum(a, b, modulus));
 }
コード例 #5
0
 public override double ModularSum(double a, double b, double modulus)
 {
     return((double)IntegerMath.ModularSum(ToBigInteger(a), ToBigInteger(b), ToBigInteger(modulus)));
 }
コード例 #6
0
 public override Complex ModularSum(Complex a, Complex b, Complex modulus)
 {
     return((Complex)IntegerMath.ModularSum(ToBigInteger(a), ToBigInteger(b), ToBigInteger(modulus)));
 }
コード例 #7
0
 public override BigInteger ModularSum(BigInteger a, BigInteger b, BigInteger modulus)
 {
     return(IntegerMath.ModularSum(a, b, modulus));
 }