R/linearAlgebra-vech-dot.R

Defines functions .vech

#' Half-Vectorize - Dot Function
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @inherit vech description details references return
#' @inheritParams vech
#'
#' @family Vectorization Functions
#' @keywords linearAlgebra vectorization dot
#' @noRd
.vech <- function(x) {
  x[
    lower.tri(
      x = x,
      diag = TRUE
    )
  ]
}
jeksterslab/sigmaMatrix documentation built on Dec. 20, 2021, 10:12 p.m.