std::philox_engine<UIntType,w,n,r,consts>:: discard
From cppreference.net
<
cpp
|
numeric
|
random
|
philox engine
C++
Numerics library
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pseudo-random number generation
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::philox_engine
| Member functions | ||||
| Generation | ||||
|
philox_engine::discard
|
||||
| Characteristics | ||||
| Non-member functions | ||||
|
(C++26)
|
||||
|
(C++26)
(C++26)
|
|
void
discard
(
unsigned
long
long
z
)
;
|
||
내부 상태를 z 회만큼 진행합니다.
목차 |
매개변수
| z | - | 상태를 진행시킬 횟수를 지정하는 정수 값 |
복잡도
z 번의 연속적인 operator() 호출의 복잡성보다 나쁘지 않습니다.
참고 사항
이 함수는 중간 상태 전이를 계산하지 않고 많은 단계(수백만 단위)만큼 상태를 진행시키는 "빠른 점프" 알고리즘을 사용할 수 있으며, operator() z 회 호출하고 결과를 버리는 단순한 루프 대신 사용될 수 있습니다.
참고 항목
|
엔진의 상태를 진행시키고 생성된 값을 반환합니다
(public member function) |