R/linearAlgebra-sym-check-dot.R

Defines functions .check_sym

#' Sanity Checks Symmetric Matrices
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @param x Matrix.
#' @family Symmetric Functions
#' @keywords linearAlgebra check
#' @noRd
.check_sym <- function(x) {
  stopifnot(
    is.matrix(x),
    x == t(x)
  )
}
jeksterslab/linearAlgebra documentation built on Dec. 20, 2021, 10:10 p.m.