R/TcGSAseq_internal.R

#'Power for matrix elements
#'
#'Set each element of matrix \code{x} to the power \code{n}
#'
#'@param x a matrix
#'
#'@param n a real number
#'
#'@keywords internal

"%^%" <- function(x, n){
  with(eigen(x), vectors %*% (values^n * t(vectors)))
}
denisagniel/tcgsaseq documentation built on May 7, 2022, 1:22 a.m.