Skip to main content

Module extended_int

Module extended_int 

Source
Expand description

Extended integer type support: i128 and u128.

NumPy does not expose native int128 / uint128 dtypes, but PyO3 can round-trip Rust i128 / u128 values through Python’s arbitrary-precision int type. This module provides:

Structs§

I128Array
A Python-visible fixed-size array of i128 values.
U128Array
A Python-visible fixed-size array of u128 values.

Functions§

from_i128
Convert a Rust i128 to a Python int.
from_u128
Convert a Rust u128 to a Python int.
register_extended_int_module
Register extended-integer types and conversion functions into a PyO3 module.
to_i128
Convert a Python int to a Rust i128.
to_u128
Convert a Python int to a Rust u128.