Skip to content
Prev 323829 / 398503 Next

Generate positive definite matrix with constraints

On Sun, May 19, 2013 at 4:57 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
I think I reversed it too.  If that's not it try this:

m0.vectors <- eigen(m0)$vectors
with(eigen(matrix(rnorm(4), 2)), m0.vectors %*% diag(values) %*%
solve(m0.vectors.0))


--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com