update_marriage_likelihoods_in_place: Update one row of a marriage likelihood matrix IN PLACE!

Description Usage Arguments Value

Description

The intended use of this is to update the marriage likelihoods after an individual has been moved from one sibship to another. So, for example, if you moved an individual from sibship 40 to sibship 291 (as subscripted in R) then you would want to run this with bz_idx equal to c(39, 290).

Usage

1

Arguments

S

a list of vectors that give the indices (base 0) of the individuals in the full sibling groups.

PK

per-kid marriage likelihoods. This must be of class marriage_geno_lik_array, which is just a matrix underneath with G x G x L rows and N columns.

ML

the marriage likelihoods matrix to be modified

bz_idx

An integer vector holding the BASE-0 indices of the components of S that will be accessed and used to update ML.

Value

This doesn't return anything. It modifies ML in place via call be reference. Our goal here is to make updates without copying a lot of memory.


eriqande/fullsniplings documentation built on May 16, 2019, 8:45 a.m.