R/functions.R

ones = function(m,n){
	return(matrix(1,nrow=m,ncol=n))
}

zeros = function(m,n){
	return(matrix(0,nrow=m,ncol=n))
}

speye = function(m){
#This function is not actually sparse yet.  Needs to be fixed.
	
	return(diag(m))
	
}

Try the DWD package in your browser

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

DWD documentation built on May 2, 2019, 5 p.m.