R/Ac.R

Defines functions Ac

#' @title Ac
#' @param X A sqaure matrix.
#' @param n The number of nodes.
#' @return z the result
#' @noRd
#' @keywords internal

Ac = function(X, n){
  z = c(2 * X %*% matrix(1, n, 1), sum(diag(X)))
  return(z)
}

Try the CASCORE package in your browser

Any scripts or data that you put into this service are public.

CASCORE documentation built on July 9, 2023, 5:31 p.m.