R/matfreeQ.R

Defines functions matfreeQ

matfreeQ <-
function(Mmult,tMmult,m,cols,q=0){
	Omega<-matrix(rnorm(m*cols), ncol=m)
	AOmega<-Mmult(Omega)
	Q<-qr.Q(qr(AOmega))
	for(i in seq_len(q)){
		tildeQ<-qr.Q(qr(tMmult(Q)))
		Q<-qr.Q(qr(Mmult(tildeQ)))
	}
	Q
	}

Try the bigQF package in your browser

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

bigQF documentation built on Nov. 23, 2021, 5:06 p.m.