BigInt

Standard library class numpy.dragon4.BigInt View source
class BigInt
class BigInt
Fields 2
length int
blocks Ptr[u32]
Constructors 2
__init__
__init__(self, length: int, blocks: Ptr[u32])
Defined in numpy.dragon4
__init__
__init__(self)
Defined in numpy.dragon4
Properties 1
even
@property
even(self)
Defined in numpy.dragon4
Methods 13
make_pow10
make_pow10(i: u32)
Defined in numpy.dragon4
copy
copy(self, dst: BigInt)
Defined in numpy.dragon4
set
set(self, val: u64)
Defined in numpy.dragon4
set(self, hi: u64, lo: u64)
Defined in numpy.dragon4
set(self, val: u32)
Defined in numpy.dragon4
compare
compare(self, rhs: BigInt)
Defined in numpy.dragon4
add
add(self, lhs: BigInt, rhs: BigInt)
Defined in numpy.dragon4
mul
mul(self, lhs: BigInt, rhs: BigInt)
Defined in numpy.dragon4
mul(self, lhs: BigInt, rhs: u32)
Defined in numpy.dragon4
mul2
mul2(self, in_: BigInt)
Defined in numpy.dragon4
mul2(self)
Defined in numpy.dragon4
mul10
mul10(self)
Defined in numpy.dragon4
pow10
pow10(self, exponent: u32, temp: BigInt)
Defined in numpy.dragon4
mul_pow10
mul_pow10(self, exponent: u32, temp: BigInt)
Defined in numpy.dragon4
pow2
pow2(self, exponent: u32)
Defined in numpy.dragon4
div_with_rem_maxq9
div_with_rem_maxq9(self, divisor: BigInt)
Defined in numpy.dragon4
lshift
lshift(self, shift: u32)
Defined in numpy.dragon4
Special methods 11
__str__
__str__(self)
Defined in numpy.dragon4
__getitem__
__getitem__(self, idx: int)
Defined in numpy.dragon4
__setitem__
__setitem__(self, idx: int, val: u32)
Defined in numpy.dragon4
__setitem__(self, idx: int, val: u64)
Defined in numpy.dragon4
__len__
__len__(self)
Defined in numpy.dragon4
__bool__
__bool__(self)
Defined in numpy.dragon4
__eq__
__eq__(self, other: BigInt)
Defined in numpy.dragon4
__ne__
__ne__(self, other: BigInt)
Defined in numpy.dragon4
__lt__
__lt__(self, other: BigInt)
Defined in numpy.dragon4
__le__
__le__(self, other: BigInt)
Defined in numpy.dragon4
__gt__
__gt__(self, other: BigInt)
Defined in numpy.dragon4
__ge__
__ge__(self, other: BigInt)
Defined in numpy.dragon4