Useful when calling ERE_step_cycle or
GibbsSteps_kcycle to ensure that
there are no side effects for the return values.
A deep copy of the matrix.
lambda <- matrix(0.5,nrow=2,ncol=2)
p <- matrix(0.7, nrow=2,ncol=2)
L <- matrix(rexp(4),nrow=2);
Lold <- L
Lcopy <- cloneMatrix(L)
L ## new value
Lold ## equal to L !!!
Lcopy ## still has the original value
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.