Nothing
#######################
#### function GtoD2 ####
#######################
GtoD2 <- function(G){
if (!inherits(G,"Gram"))
stop(" 'G' must be of class Gram")
n<-ncol(G)
onesn <- matrix(rep(1,n),nrow=n) #ones vector
Delta<-t(t(diag(G)))%*%t(onesn)+onesn%*%t(diag(G))-2*G
class(Delta)<-"D2"
return(Delta)
}
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.