Struct data_matrix

Struct Documentation

struct fwdpp::data_matrix

Genotype or haplotype matrix.

Data for neutral and selected variants, respectively are stored as state_matrix objects.

Public Functions

data_matrix(const std::size_t ncol_)

Constructor

Version

0.7.0 Changed from rows are sites to rows are individuals. Removed default value of zero from constructor.

Parameters
  • ncol_: Number of columns in the matrix

Public Members

state_matrix neutral

Data for neutral mutations.

state_matrix selected

Data for selected mutations.

std::vector<std::size_t> neutral_keys

Locations of neutral mutations from mutation vector. Same order as matrix row order

std::vector<std::size_t> selected_keys

Locations of selected mutations from mutation vector. Same order as matrix row order

std::size_t ncol

Number of columns in the matrix.