R/calc_sqrt_mat.R

Defines functions calc_invsqrt_mat calc_sqrt_mat

Documented in calc_invsqrt_mat calc_sqrt_mat

#' Calculate matrix square root for a covariance matrix
#'
#' @param A covariance matrix
#'
calc_sqrt_mat <- function(A) {
    rcppeigen_sqrt(A)
}


#' Calculate matrix inverse square root for a covariance matrix
#'
#' @param A covariance matrix
#'
calc_invsqrt_mat <- function(A) {
    rcppeigen_invsqrt(A)
}

Try the qtl2pleio package in your browser

Any scripts or data that you put into this service are public.

qtl2pleio documentation built on Dec. 3, 2020, 1:06 a.m.