numpy.dragon4

Standard library module View source
class BigInt
class BigInt
Fields 2
length int
blocks Ptr[u32]
Constructors 2
__init__
__init__(self, length: int, blocks: Ptr[u32])
__init__
__init__(self)
Properties 1
even
@property
even(self)
Methods 13
make_pow10
make_pow10(i: u32)
copy
copy(self, dst: BigInt)
set
set(self, val: u64)
set(self, hi: u64, lo: u64)
set(self, val: u32)
compare
compare(self, rhs: BigInt)
add
add(self, lhs: BigInt, rhs: BigInt)
mul
mul(self, lhs: BigInt, rhs: BigInt)
mul(self, lhs: BigInt, rhs: u32)
mul2
mul2(self, in_: BigInt)
mul2(self)
mul10
mul10(self)
pow10
pow10(self, exponent: u32, temp: BigInt)
mul_pow10
mul_pow10(self, exponent: u32, temp: BigInt)
pow2
pow2(self, exponent: u32)
div_with_rem_maxq9
div_with_rem_maxq9(self, divisor: BigInt)
lshift
lshift(self, shift: u32)
Special methods 11
__str__
__str__(self)
__getitem__
__getitem__(self, idx: int)
__setitem__
__setitem__(self, idx: int, val: u32)
__setitem__(self, idx: int, val: u64)
__len__
__len__(self)
__bool__
__bool__(self)
__eq__
__eq__(self, other: BigInt)
__ne__
__ne__(self, other: BigInt)
__lt__
__lt__(self, other: BigInt)
__le__
__le__(self, other: BigInt)
__gt__
__gt__(self, other: BigInt)
__ge__
__ge__(self, other: BigInt)
function dragon4
dragon4(bigints, exponent: i32, mantissa_bit: u32, has_unequal_margins: bool, digit_mode: int, cutoff_mode: int, cutoff_max: int, cutoff_min: int, out_buffer: cobj, buffer_size: int, out_exponent: Ptr[i32])
function format_positional
format_positional(buffer: cobj, buffer_size: int, mantissa, exponent: i32, signbit: u8, mantissa_bit: u32, has_unequal_margins: bool, digit_mode: int, cutoff_mode: int, precision: i32, min_digits: i32, trim_mode: int, digits_left: int, digits_right: int)
function format_scientific
format_scientific(buffer: cobj, buffer_size: int, mantissa, exponent: i32, signbit: u8, mantissa_bit: u32, has_unequal_margins: bool, digit_mode: int, precision: i32, min_digits: i32, trim_mode: int, digits_left: int, exp_digits: int)
function print_inf_nan
print_inf_nan(buffer: cobj, buffer_size: int, mantissa: u64, mantissa_hex_width: int, signbit: u8)
function format_float_bits
format_float_bits(buffer: cobj, buffer_size: int, mantissa, exponent: i32, signbit: u8, mantissa_bit: u32, has_unequal_margins: bool, scientific: bool, digit_mode: int, cutoff_mode: int, precision: i32, min_digits: i32, sign: bool, trim_mode: int, digits_left: int, digits_right: int, exp_digits: int)
function format_ieee16
format_ieee16(value: float16, scientific: bool = False, unique: bool = True, fractional: bool = True, precision: int = -1, min_digits: int = -1, sign: bool = False, trim_mode: str = "k", digits_left: int = -1, digits_right: int = -1, exp_digits: int = -1)
function format_ieee32
format_ieee32(value: float32, scientific: bool = False, unique: bool = True, fractional: bool = True, precision: int = -1, min_digits: int = -1, sign: bool = False, trim_mode: str = "k", digits_left: int = -1, digits_right: int = -1, exp_digits: int = -1)
function format_ieee64
format_ieee64(value: float, scientific: bool = False, unique: bool = True, fractional: bool = True, precision: int = -1, min_digits: int = -1, sign: bool = False, trim_mode: str = "k", digits_left: int = -1, digits_right: int = -1, exp_digits: int = -1)
function format_ieee128
format_ieee128(value: float128, scientific: bool = False, unique: bool = True, fractional: bool = True, precision: int = -1, min_digits: int = -1, sign: bool = False, trim_mode: str = "k", digits_left: int = -1, digits_right: int = -1, exp_digits: int = -1)
function format_float
format_float(value, scientific: bool = False, unique: bool = True, fractional: bool = True, precision: int = -1, min_digits: int = -1, sign: bool = False, trim_mode: str = "k", digits_left: int = -1, digits_right: int = -1, exp_digits: int = -1)
function format_float_positional
format_float_positional(x, precision: Optional[int] = None, unique: bool = True, fractional: bool = True, trim: str = "k", sign: bool = False, pad_left: Optional[int] = None, pad_right: Optional[int] = None, min_digits: Optional[int] = None)
function format_float_scientific
format_float_scientific(x, precision: Optional[int] = None, unique: bool = True, trim: str = "k", sign: bool = False, pad_left: Optional[int] = None, exp_digits: Optional[int] = None, min_digits: Optional[int] = None)