C# 클래스 Granados.Mono.Math.BigInteger

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

Private Properties

프로퍼티 타입 설명
BigInteger System
BigInteger System
BigInteger System
BigInteger System
ClearBit void
Modulus uint
Normalize void
SetBit void
SetBit void
TestBit bool
ToString string
ToString string
operator bool
operator uint

공개 메소드들

메소드 설명
Add ( BigInteger bi1, BigInteger bi2 ) : BigInteger
BigInteger ( ) : System
BigInteger ( BigInteger bi ) : System
BigInteger ( byte inData ) : System
BitCount ( ) : int
Clear ( ) : void
Compare ( BigInteger bi ) : Sign
Divid ( BigInteger bi1, BigInteger bi2 ) : BigInteger
Divid ( BigInteger bi, int i ) : BigInteger
Equals ( object o ) : bool
GCD ( BigInteger bi ) : BigInteger
GeneratePseudoPrime ( int bits ) : BigInteger
GenerateRandom ( int bits ) : BigInteger

Generates a new, random BigInteger of the specified length using the default RNG crypto service provider.

GenerateRandom ( int bits, RandomNumberGenerator rng ) : BigInteger

Generates a new, random BigInteger of the specified length.

GetBytes ( ) : byte[]
GetHashCode ( ) : int
Incr2 ( ) : void

Increments this by two

IsProbablePrime ( ) : bool
LowestSetBit ( ) : int
ModInverse ( BigInteger modulus ) : BigInteger
ModPow ( BigInteger exp, BigInteger n ) : BigInteger
Modulus ( BigInteger bi1, BigInteger bi2 ) : BigInteger
Modulus ( BigInteger bi, int i ) : int
Multiply ( BigInteger bi1, BigInteger bi2 ) : BigInteger
Multiply ( BigInteger bi, int i ) : BigInteger
NextHighestPrime ( BigInteger bi ) : BigInteger

Generates the smallest prime >= bi

Parse ( string number ) : BigInteger
Randomize ( ) : void

Randomizes the bits in "this" from the default RNG.

Randomize ( RandomNumberGenerator rng ) : void

Randomizes the bits in "this" from the specified RNG.

Subtract ( BigInteger bi1, BigInteger bi2 ) : BigInteger
TestBit ( int bitNum ) : bool
ToString ( ) : string
operator ( ) : BigInteger
operator ( ) : int

비공개 메소드들

메소드 설명
BigInteger ( BigInteger bi, uint len ) : System
BigInteger ( Sign sign, uint len ) : System
BigInteger ( uint inData ) : System
BigInteger ( ulong ul ) : System
ClearBit ( uint bitNum ) : void
Modulus ( BigInteger bi, uint ui ) : uint
Normalize ( ) : void

Normalizes this by setting the length to the actual number of uints used in data and by setting the sign to Sign.Zero if the value of this is 0.

SetBit ( uint bitNum ) : void
SetBit ( uint bitNum, bool value ) : void
TestBit ( uint bitNum ) : bool
ToString ( uint radix ) : string
ToString ( uint radix, string characterSet ) : string
operator ( ) : bool
operator ( ) : uint

메소드 상세

Add() 공개 정적인 메소드

public static Add ( BigInteger bi1, BigInteger bi2 ) : BigInteger
bi1 BigInteger
bi2 BigInteger
리턴 BigInteger

BigInteger() 공개 메소드

public BigInteger ( ) : System
리턴 System

BigInteger() 공개 메소드

public BigInteger ( BigInteger bi ) : System
bi BigInteger
리턴 System

BigInteger() 공개 메소드

public BigInteger ( byte inData ) : System
inData byte
리턴 System

BitCount() 공개 메소드

public BitCount ( ) : int
리턴 int

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Compare() 공개 메소드

public Compare ( BigInteger bi ) : Sign
bi BigInteger
리턴 Sign

Divid() 공개 정적인 메소드

public static Divid ( BigInteger bi1, BigInteger bi2 ) : BigInteger
bi1 BigInteger
bi2 BigInteger
리턴 BigInteger

Divid() 공개 정적인 메소드

public static Divid ( BigInteger bi, int i ) : BigInteger
bi BigInteger
i int
리턴 BigInteger

Equals() 공개 메소드

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

GCD() 공개 메소드

public GCD ( BigInteger bi ) : BigInteger
bi BigInteger
리턴 BigInteger

GeneratePseudoPrime() 공개 정적인 메소드

public static GeneratePseudoPrime ( int bits ) : BigInteger
bits int
리턴 BigInteger

GenerateRandom() 공개 정적인 메소드

Generates a new, random BigInteger of the specified length using the default RNG crypto service provider.
public static GenerateRandom ( int bits ) : BigInteger
bits int The number of bits for the new number.
리턴 BigInteger

GenerateRandom() 공개 정적인 메소드

Generates a new, random BigInteger of the specified length.
public static GenerateRandom ( int bits, RandomNumberGenerator rng ) : BigInteger
bits int The number of bits for the new number.
rng System.Security.Cryptography.RandomNumberGenerator A random number generator to use to obtain the bits.
리턴 BigInteger

GetBytes() 공개 메소드

public GetBytes ( ) : byte[]
리턴 byte[]

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Incr2() 공개 메소드

Increments this by two
public Incr2 ( ) : void
리턴 void

IsProbablePrime() 공개 메소드

public IsProbablePrime ( ) : bool
리턴 bool

LowestSetBit() 공개 메소드

public LowestSetBit ( ) : int
리턴 int

ModInverse() 공개 메소드

public ModInverse ( BigInteger modulus ) : BigInteger
modulus BigInteger
리턴 BigInteger

ModPow() 공개 메소드

public ModPow ( BigInteger exp, BigInteger n ) : BigInteger
exp BigInteger
n BigInteger
리턴 BigInteger

Modulus() 공개 정적인 메소드

public static Modulus ( BigInteger bi1, BigInteger bi2 ) : BigInteger
bi1 BigInteger
bi2 BigInteger
리턴 BigInteger

Modulus() 공개 정적인 메소드

public static Modulus ( BigInteger bi, int i ) : int
bi BigInteger
i int
리턴 int

Multiply() 공개 정적인 메소드

public static Multiply ( BigInteger bi1, BigInteger bi2 ) : BigInteger
bi1 BigInteger
bi2 BigInteger
리턴 BigInteger

Multiply() 공개 정적인 메소드

public static Multiply ( BigInteger bi, int i ) : BigInteger
bi BigInteger
i int
리턴 BigInteger

NextHighestPrime() 공개 정적인 메소드

Generates the smallest prime >= bi
public static NextHighestPrime ( BigInteger bi ) : BigInteger
bi BigInteger A BigInteger
리턴 BigInteger

Parse() 공개 정적인 메소드

public static Parse ( string number ) : BigInteger
number string
리턴 BigInteger

Randomize() 공개 메소드

Randomizes the bits in "this" from the default RNG.
public Randomize ( ) : void
리턴 void

Randomize() 공개 메소드

Randomizes the bits in "this" from the specified RNG.
public Randomize ( RandomNumberGenerator rng ) : void
rng System.Security.Cryptography.RandomNumberGenerator A RNG.
리턴 void

Subtract() 공개 정적인 메소드

public static Subtract ( BigInteger bi1, BigInteger bi2 ) : BigInteger
bi1 BigInteger
bi2 BigInteger
리턴 BigInteger

TestBit() 공개 메소드

public TestBit ( int bitNum ) : bool
bitNum int
리턴 bool

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

public static operator ( ) : BigInteger
리턴 BigInteger

operator() 공개 정적인 메소드

public static operator ( ) : int
리턴 int