Recti 1.2.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ilds::VdCorput< Base > Class Template Reference

van der Corput sequence generator More...

#include <ilds.hpp>

Public Member Functions

constexpr VdCorput (unsigned int scale=DEFAULT_SCALE)
 Construct a new VdCorput object.
 
constexpr auto pop () -> unsigned long
 Increments count and calculates the next value in the sequence.
 
constexpr auto reseed (const unsigned long &seed) -> void
 Resets the state of the sequence generator.
 
 VdCorput (VdCorput &&) noexcept=delete
 
VdCorputoperator= (VdCorput &&) noexcept=delete
 

Detailed Description

template<unsigned long Base = 2>
class ilds::VdCorput< Base >

van der Corput sequence generator

Implementation based on pre-calculating the scale factor.

Template Parameters
BaseThe base of the sequence (default 2).

Constructor & Destructor Documentation

◆ VdCorput() [1/2]

template<unsigned long Base = 2>
constexpr ilds::VdCorput< Base >::VdCorput ( unsigned int  scale = DEFAULT_SCALE)
inlineexplicitconstexpr

Construct a new VdCorput object.

Parameters
[in]scaleThe number of digits (default: 10)

◆ VdCorput() [2/2]

template<unsigned long Base = 2>
ilds::VdCorput< Base >::VdCorput ( VdCorput< Base > &&  )
deletenoexcept

Member Function Documentation

◆ operator=()

template<unsigned long Base = 2>
VdCorput & ilds::VdCorput< Base >::operator= ( VdCorput< Base > &&  )
deletenoexcept

◆ pop()

template<unsigned long Base = 2>
constexpr auto ilds::VdCorput< Base >::pop ( ) -> unsigned long
inlineconstexpr

Increments count and calculates the next value in the sequence.

Returns
unsigned long

◆ reseed()

template<unsigned long Base = 2>
constexpr auto ilds::VdCorput< Base >::reseed ( const unsigned long &  seed) -> void
inlineconstexpr

Resets the state of the sequence generator.

Parameters
[in]seed

The documentation for this class was generated from the following file: