R/dMatrixFun.R

Defines functions dMatrixFun

dMatrixFun = function(indx, n){
  e.vec=matrix(0,n,1)
  e.vec[indx[1],]=1
  e.vec[indx[2],]=(-1)
  return(e.vec)
}

Try the cencrne package in your browser

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

cencrne documentation built on Jan. 9, 2023, 5:10 p.m.