RyanHornby / csSampling

Other
11 stars 2 forks source link

Typo in Cholesky Decomposition #3

Closed mrdwill closed 2 years ago

mrdwill commented 2 years ago

In R/cs_sampling.r line 178

  R2 <- chol(Hi, pivot = TRUE)
  pivot2 <- attr(R2, "pivot2")
  R2 <- R2[, order(pivot)]

Should be

  R2 <- chol(Hi, pivot = TRUE)
  pivot2 <- attr(R2, "pivot")
  R2 <- R2[, order(pivot2)]