Skip to main content

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