A version of expokit_dgpadm_Qmat to byte-compile

Description

Byte-compiling is supposed to speed up functions; this is an attempt to do this on the rexpokit function expokit_dgpadm_Qmat. It is also possible to byte-compile everything during package installation (via ByteCompile: true in the DESCRIPTION file), which is implemented in BioGeoBEARS, so this may be redundant.

Usage

1
2
  expokit_dgpadm_Qmat2_prebyte(times, Qmat,
    transpose_needed = TRUE)

Arguments

times

one or more time values to exponentiate by

Qmat

an input Q transition matrix

transpose_needed

If TRUE (default), matrix will be transposed (apparently EXPOKIT needs the input matrix to be transposed compared to normal)

Details

expokit_dgpadm_Qmat2_prebyte gets byte-compiled into expokit_dgpadm_Qmat2.

See http://dirk.eddelbuettel.com/blog/2011/04/12/ for discussion of the compiler (cmpfun) package.

Value

tmpoutmat the output matrix.

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

expokit_dgpadm_Qmat, expokit_dgpadm_Qmat2, compile, cmpfun

Examples

1
testval=1

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.