C# 클래스 Sharith.Arithmetic.XInt

Mini-Wrapper for some of MPIR's BigInt functions.
파일 보기 프로젝트 열기: PeterLuschny/Fast-Factorial-Functions 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MinusOne XInt
One XInt
Zero XInt

공개 메소드들

메소드 설명
Clone ( ) : object
CompareTo ( Int32 other ) : Int32
CompareTo ( XInt other ) : Int32
Equals ( XInt other ) : bool
Equals ( object obj ) : bool
Factorial ( Int32 x ) : XInt
GetHashCode ( ) : Int32
GreatestCommonDivisor ( XInt x, XInt y ) : XInt
IsEven ( ) : bool
Pow ( Int32 n ) : XInt
Pow ( UInt32 bas, UInt32 exp ) : XInt
Pow ( XInt bas, Int32 exp ) : XInt
Pow ( XInt bas, UInt32 exp ) : XInt
PowMod ( XInt exp, XInt mod ) : XInt
PrimeSwingParallelFactorial ( Int32 x ) : XInt
SchoenhageParallelFactorial ( Int32 x ) : XInt
SizeInBase ( Int32 basis ) : Int32
Sqrt ( ) : XInt
Sqrt ( XInt i ) : XInt
ToString ( IFormatProvider provider ) : string
XInt ( ) : System
XInt ( Int32 value ) : System
XInt ( System.Int64 value ) : System
XInt ( String value ) : System
XInt ( UInt32 value ) : System
XInt ( System.UInt64 value ) : System
XInt ( XInt value ) : System
operator ( ) : XInt
operator ( ) : bool

비공개 메소드들

메소드 설명
_PrimeSwingParallelFactorial ( MpzT &fact, ulong n ) : void
_SchoenhageParallelFactorial ( MpzT &fact, ulong n ) : void
mpz_add ( MpzT &dest, MpzT &src, MpzT &src2 ) : void
mpz_add_ui ( MpzT &dest, MpzT &src, UInt32 val ) : void
mpz_clear ( MpzT &src ) : void
mpz_cmp ( MpzT &x, MpzT &y ) : Int32
mpz_cmp_d ( MpzT &x, double y ) : Int32
mpz_cmp_si ( MpzT &x, Int32 y ) : Int32
mpz_fac_ui ( MpzT &rop, UInt32 op ) : void
mpz_gcd ( MpzT &rop, MpzT &op1, MpzT &op2 ) : void
mpz_get_d ( MpzT &src ) : double
mpz_get_si ( MpzT &src ) : Int32
mpz_get_str ( IntPtr outString, Int32 _base, MpzT &src ) : IntPtr
mpz_init ( MpzT &value ) : void
mpz_init_set_si ( MpzT &value, Int32 v ) : void
mpz_init_set_str ( MpzT &rop, IntPtr s, Int32 basis ) : Int32
mpz_init_set_ui ( MpzT &rop, UInt32 v ) : void
mpz_invert ( MpzT &rop, MpzT &x, MpzT &y ) : Int32
mpz_mod ( MpzT &rop, MpzT &x, MpzT &mod ) : void
mpz_mul ( MpzT &dest, MpzT &x, MpzT &y ) : void
mpz_mul_2exp ( MpzT &rop, MpzT &x, UInt32 shift ) : Int32
mpz_mul_si ( MpzT &dest, MpzT &src, Int32 val ) : void
mpz_mul_ui ( MpzT &dest, MpzT &src, UInt32 val ) : void
mpz_pow_ui ( MpzT &rop, MpzT &op, UInt32 exp ) : void
mpz_powm ( MpzT &rop, MpzT &bas, MpzT &exp, MpzT &mod ) : void
mpz_set ( MpzT &dest, MpzT &src ) : void
mpz_set_si ( MpzT &src, Int32 value ) : void
mpz_set_str ( MpzT &rop, IntPtr s, Int32 sbase ) : Int32
mpz_sizeinbase ( MpzT &src, Int32 _base ) : Int32
mpz_sqrt ( MpzT &rop, MpzT &op ) : void
mpz_sub ( MpzT &rop, MpzT &x, MpzT &y ) : void
mpz_tdiv_q ( MpzT &dest, MpzT &src, MpzT &src2 ) : void
mpz_ui_pow_ui ( MpzT &rop, UInt32 bas, UInt32 exp ) : void

메소드 상세

Clone() 공개 메소드

public Clone ( ) : object
리턴 object

CompareTo() 공개 메소드

public CompareTo ( Int32 other ) : Int32
other System.Int32
리턴 System.Int32

CompareTo() 공개 메소드

public CompareTo ( XInt other ) : Int32
other XInt
리턴 System.Int32

Equals() 공개 메소드

public Equals ( XInt other ) : bool
other XInt
리턴 bool

Equals() 공개 메소드

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

Factorial() 공개 정적인 메소드

public static Factorial ( Int32 x ) : XInt
x System.Int32
리턴 XInt

GetHashCode() 공개 메소드

public GetHashCode ( ) : Int32
리턴 System.Int32

GreatestCommonDivisor() 공개 정적인 메소드

public static GreatestCommonDivisor ( XInt x, XInt y ) : XInt
x XInt
y XInt
리턴 XInt

IsEven() 공개 메소드

public IsEven ( ) : bool
리턴 bool

Pow() 공개 메소드

public Pow ( Int32 n ) : XInt
n System.Int32
리턴 XInt

Pow() 공개 정적인 메소드

public static Pow ( UInt32 bas, UInt32 exp ) : XInt
bas System.UInt32
exp System.UInt32
리턴 XInt

Pow() 공개 정적인 메소드

public static Pow ( XInt bas, Int32 exp ) : XInt
bas XInt
exp System.Int32
리턴 XInt

Pow() 공개 정적인 메소드

public static Pow ( XInt bas, UInt32 exp ) : XInt
bas XInt
exp System.UInt32
리턴 XInt

PowMod() 공개 메소드

public PowMod ( XInt exp, XInt mod ) : XInt
exp XInt
mod XInt
리턴 XInt

PrimeSwingParallelFactorial() 공개 정적인 메소드

public static PrimeSwingParallelFactorial ( Int32 x ) : XInt
x System.Int32
리턴 XInt

SchoenhageParallelFactorial() 공개 정적인 메소드

public static SchoenhageParallelFactorial ( Int32 x ) : XInt
x System.Int32
리턴 XInt

SizeInBase() 공개 메소드

public SizeInBase ( Int32 basis ) : Int32
basis System.Int32
리턴 System.Int32

Sqrt() 공개 메소드

public Sqrt ( ) : XInt
리턴 XInt

Sqrt() 공개 정적인 메소드

public static Sqrt ( XInt i ) : XInt
i XInt
리턴 XInt

ToString() 공개 메소드

public ToString ( IFormatProvider provider ) : string
provider IFormatProvider
리턴 string

XInt() 공개 메소드

public XInt ( ) : System
리턴 System

XInt() 공개 메소드

public XInt ( Int32 value ) : System
value System.Int32
리턴 System

XInt() 공개 메소드

public XInt ( System.Int64 value ) : System
value System.Int64
리턴 System

XInt() 공개 메소드

public XInt ( String value ) : System
value String
리턴 System

XInt() 공개 메소드

public XInt ( UInt32 value ) : System
value System.UInt32
리턴 System

XInt() 공개 메소드

public XInt ( System.UInt64 value ) : System
value System.UInt64
리턴 System

XInt() 공개 메소드

public XInt ( XInt value ) : System
value XInt
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : XInt
리턴 XInt

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

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

public static XInt,Sharith.Arithmetic MinusOne
리턴 XInt

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

public static XInt,Sharith.Arithmetic One
리턴 XInt

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

public static XInt,Sharith.Arithmetic Zero
리턴 XInt