Parallel PopGen Package
Sim_Model::demography_constant Struct Reference

functor: single, constant population size (N individuals) across populations and over time More...

Public Member Functions

 demography_constant ()
 default constructor More...
 
 demography_constant (int p)
 constructor More...
 
__host__ __device__ __forceinline__ int operator() (const int population, const int generation) const
 Demographic operator, returns population size (individuals), N, for a given population, generation More...
 

Public Attributes

int N
 population size (individuals) constant More...
 

Detailed Description

functor: single, constant population size (N individuals) across populations and over time

Examples:
Example1-Speed, Example2-DaDi, and Example3-Compilation.

Definition at line 154 of file go_fish.cuh.

Constructor & Destructor Documentation

§ demography_constant() [1/2]

Sim_Model::demography_constant::demography_constant ( )
inline

default constructor

N = 0

Definition at line 282 of file template_inline_simulation_functors.cuh.

§ demography_constant() [2/2]

Sim_Model::demography_constant::demography_constant ( int  p)
inline

constructor

Definition at line 283 of file template_inline_simulation_functors.cuh.

Member Function Documentation

§ operator()()

__host__ __device__ __forceinline__ int Sim_Model::demography_constant::operator() ( const int  population,
const int  generation 
) const

Demographic operator, returns population size (individuals), N, for a given population, generation

Definition at line 284 of file template_inline_simulation_functors.cuh.

Member Data Documentation

§ N

int Sim_Model::demography_constant::N

population size (individuals) constant

Definition at line 156 of file go_fish.cuh.


The documentation for this struct was generated from the following files: