R/misc.R

.givensrot <- function(t, dim=2, i=1, j=2) {
	rot = matrix(rep(0, dim^2), nrow=dim)
	rot[i,i] = cos(t)
	rot[j,j] = cos(t)
	rot[i,j] = sin(t)
	rot[j,i] = -sin(t)
	return(rot)
}

Try the sbfac package in your browser

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

sbfac documentation built on May 2, 2019, 5:57 p.m.