C# 클래스 Mono.Math.BigInteger

파일 보기 프로젝트 열기: rackerlabs/openstack-guest-agents-windows-xenserver 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
smallPrimes uint[]

Private Properties

프로퍼티 타입 설명
Normalize void
isProbablePrime bool

공개 메소드들

메소드 설명
BigInteger ( ) : System
BigInteger ( BigInteger bi ) : System
BigInteger ( BigInteger bi, uint len ) : System
BigInteger ( Sign sign, uint len ) : System
BigInteger ( byte inData ) : System
BigInteger ( uint inData ) : System
BigInteger ( ulong ul ) : System
Clear ( ) : void
Compare ( BigInteger bi ) : Sign
Equals ( object o ) : bool
GetHashCode ( ) : int
Incr2 ( ) : void

Increments this by two

LowestSetBit ( ) : int
NextHightestPrime ( BigInteger bi ) : BigInteger

Generates the smallest prime >= bi

Parse ( string number ) : BigInteger
ToString ( ) : string
ToString ( uint radix ) : string
ToString ( uint radix, string charSet ) : string
bitCount ( ) : int
clearBit ( uint bitNum ) : void
gcd ( BigInteger bi ) : BigInteger
genPseudoPrime ( int bits ) : BigInteger
genRandom ( int bits ) : BigInteger

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

genRandom ( int bits, RandomNumberGenerator rng ) : BigInteger

Generates a new, random BigInteger of the specified length.

getBytes ( ) : byte[]
isProbablePrime ( ) : bool
modInverse ( BigInteger mod ) : BigInteger
modPow ( BigInteger exp, BigInteger n ) : BigInteger
operator ( ) : BigInteger
operator ( ) : bool
operator ( ) : int
operator ( ) : uint
randomize ( ) : void

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

randomize ( RandomNumberGenerator rng ) : void

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

setBit ( uint bitNum ) : void
setBit ( uint bitNum, bool val ) : void
testBit ( int bitNum ) : bool
testBit ( uint bitNum ) : bool

Tests if the specified bit is 1.

비공개 메소드들

메소드 설명
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.

isProbablePrime ( int notUsed ) : bool

메소드 상세

BigInteger() 공개 메소드

public BigInteger ( ) : System
리턴 System

BigInteger() 공개 메소드

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

BigInteger() 공개 메소드

public BigInteger ( BigInteger bi, uint len ) : System
bi BigInteger
len uint
리턴 System

BigInteger() 공개 메소드

public BigInteger ( Sign sign, uint len ) : System
sign Sign
len uint
리턴 System

BigInteger() 공개 메소드

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

BigInteger() 공개 메소드

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

BigInteger() 공개 메소드

public BigInteger ( ulong ul ) : System
ul ulong
리턴 System

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Compare() 공개 메소드

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

Equals() 공개 메소드

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

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Incr2() 공개 메소드

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

LowestSetBit() 공개 메소드

public LowestSetBit ( ) : int
리턴 int

NextHightestPrime() 공개 정적인 메소드

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

Parse() 공개 정적인 메소드

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

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( uint radix ) : string
radix uint
리턴 string

ToString() 공개 메소드

public ToString ( uint radix, string charSet ) : string
radix uint
charSet string
리턴 string

bitCount() 공개 메소드

public bitCount ( ) : int
리턴 int

clearBit() 공개 메소드

public clearBit ( uint bitNum ) : void
bitNum uint
리턴 void

gcd() 공개 메소드

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

genPseudoPrime() 공개 정적인 메소드

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

genRandom() 공개 정적인 메소드

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

genRandom() 공개 정적인 메소드

Generates a new, random BigInteger of the specified length.
public static genRandom ( 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[]

isProbablePrime() 공개 메소드

public isProbablePrime ( ) : bool
리턴 bool

modInverse() 공개 메소드

public modInverse ( BigInteger mod ) : BigInteger
mod BigInteger
리턴 BigInteger

modPow() 공개 메소드

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

operator() 공개 정적인 메소드

public static operator ( ) : BigInteger
리턴 BigInteger

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

operator() 공개 정적인 메소드

public static operator ( ) : int
리턴 int

operator() 공개 정적인 메소드

public static operator ( ) : uint
리턴 uint

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

setBit() 공개 메소드

public setBit ( uint bitNum ) : void
bitNum uint
리턴 void

setBit() 공개 메소드

public setBit ( uint bitNum, bool val ) : void
bitNum uint
val bool
리턴 void

testBit() 공개 메소드

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

testBit() 공개 메소드

Tests if the specified bit is 1.
public testBit ( uint bitNum ) : bool
bitNum uint The bit to test. The least significant bit is 0.
리턴 bool

프로퍼티 상세

smallPrimes 공개적으로 정적으로 프로퍼티

Table of primes below 2000.

This table was generated using Mathematica 4.1 using the following function:

PrimeTable [x_] := Prime [Range [1, PrimePi [x]]] PrimeTable [6000]

public static uint[] smallPrimes
리턴 uint[]