R/linearAlgebra-mcap_diag-dot.R

Defines functions .mcap_diag

#' The Diagonal Pattern Matrix - Dot Function
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @inheritParams mcap_diag
#'
#' @family Symmetric Functions
#' @keywords linearAlgebra symmetric dot
#' @noRd
.mcap_diag <- function(k) {
  x <- diag(k)
  dim(x) <- NULL
  diag(x)
}
jeksterslab/linearAlgebra documentation built on Dec. 20, 2021, 10:10 p.m.