Skip to content

module numpy.random.philox

Source: stdlib/numpy/random/philox.codon


u128 = UInt[128]


PHILOX_BUFFER_SIZE: Literal[int] = 4


philox4x64_rounds: Literal[int] = 10


mulhilo64(a: u64, b: u64)


philox4x64_R(R: int, ctr: Tuple[u64, u64, u64, u64], key: Tuple[u64, u64])


Philox

Fields

ctr: Tuple[u64, u64, u64, u64]

key: Tuple[u64, u64]

buffer_pos: int

buffer: Tuple[u64, u64, u64, u64]

seed: SeedSequence

Magic methods

__init__(self, ctr: Tuple[u64, u64, u64, u64], key: Tuple[u64, u64])

__init__(self, seed)

__get_state__(self)

__set_state__(self, state)

Methods

next64(self)

jump(self)

advance(self, step: Tuple[u64, u64, u64, u64])

jump_inplace(self, jumps: int)