mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
add ptr_fun, mem_fun, mem_fun_ref
This commit is contained in:
parent
4a8e938887
commit
f86d17d0d4
46 changed files with 322 additions and 76 deletions
|
@ -56,7 +56,7 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR param_type()
|
||||
: p_(RealType(0.5))
|
||||
{}
|
||||
SPROUT_CONSTEXPR explicit param_type(RealType p_arg)
|
||||
explicit SPROUT_CONSTEXPR param_type(RealType p_arg)
|
||||
: p_(arg_check(p_arg))
|
||||
{}
|
||||
SPROUT_CONSTEXPR RealType p() const {
|
||||
|
@ -123,11 +123,11 @@ namespace sprout {
|
|||
: p_(RealType(0.5))
|
||||
, log_1mp_(init_log_1mp(RealType(0.5)))
|
||||
{}
|
||||
SPROUT_CONSTEXPR explicit geometric_distribution(RealType p_arg)
|
||||
explicit SPROUT_CONSTEXPR geometric_distribution(RealType p_arg)
|
||||
: p_(arg_check(p_arg))
|
||||
, log_1mp_(init_log_1mp(p_arg))
|
||||
{}
|
||||
SPROUT_CONSTEXPR explicit geometric_distribution(param_type const& parm)
|
||||
explicit SPROUT_CONSTEXPR geometric_distribution(param_type const& parm)
|
||||
: p_(parm.p())
|
||||
, log_1mp_(init_log_1mp(parm.p()))
|
||||
{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue