R/linearAlgebra-pinv_of_dcap-dot.R

Defines functions .pinv_of_dcap

#' The Moore-Penrose Inverse of the Duplication Matrix - Dot Function
#'
#' @inherit pinv_of_dcap description details references return
#'
#' @param d Numeric matrix.
#'   Duplication matrix.
#'
#' @family Symmetric Functions
#' @keywords linearAlgebra symmetric dot
#' @noRd
.pinv_of_dcap <- function(d) {
  tcrossprod(
    chol2inv(
      chol(
        crossprod(d)
      )
    ),
    d
  )
}
jeksterslab/linearAlgebra documentation built on Dec. 20, 2021, 10:10 p.m.