R/tr.R

tr <-
function(a){

p=nrow(a)
q=ncol(a)
if (p==q){
	t=sum(diag(a))
}
return(t)
}

Try the ThreeWay package in your browser

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

ThreeWay documentation built on May 2, 2019, 9:20 a.m.