R/repeatTensor.R

Defines functions repeatTensor

Documented in repeatTensor

#' @export
repeatTensor <- function(g,n){
	G <- g
	if(n > 1){
		for(t in 2:n)
			G <- tensor(G,g)
	}
	G
}

Try the QuantumOps package in your browser

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

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.