matthewwolak / nadiv

R package that constructs (non)additive genetic relationship matrices, and their inverses, from a pedigree to be used in linear mixed effect models (A.K.A. the 'animal model').
17 stars 7 forks source link

Lower bound matrix lookup #12

Closed matthewwolak closed 8 years ago

matthewwolak commented 8 years ago

Implements matrix element lookup algorithm similar to c++ std::lower_bound. This can realize significant speedup in the two functions for which it affects: makeAinv() and makeD().