Nothing
is.diag <- function (c, EPS=1e-12) {
# tests a matrix for being diagonal
# C ... matrix to be tested
# EPS ... testing criterion: max off-diagonal element over min diagonal
# element must be less than EPS
if (!is.matrix(c)) return(FALSE)
cd <- dim(c)
if (cd[1] != cd[2]) return(FALSE)
mindg <- min(abs(diag(c)))
maxodg <- max(abs(c - diag(diag(c))))
if (maxodg/mindg < EPS) return(TRUE) else return(FALSE)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.