Skip to content

Commit

Permalink
fix issue #1588
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Jan 23, 2024
1 parent 7ac5224 commit 4bec335
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: brms
Encoding: UTF-8
Type: Package
Title: Bayesian Regression Models using 'Stan'
Version: 2.20.9
Date: 2023-01-07
Version: 2.20.10
Date: 2024-01-23
Authors@R:
c(person("Paul-Christian", "Bürkner", email = "[email protected]",
role = c("aut", "cre")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ as backend. (#1544)

* Remove some remaining uses of Stan's old array syntax.
* Ensure compatibility with the latest `splines2` package version. (#1580)

* Fix output of `rmulti_normal` thanks to Ven Popov. (#1588)

# brms 2.20.3

Expand Down
2 changes: 1 addition & 1 deletion R/distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ rmulti_normal <- function(n, mu, Sigma, check = FALSE) {
}
}
draws <- matrix(rnorm(n * p), nrow = n, ncol = p)
mu + draws %*% chol(Sigma)
sweep(draws %*% chol(Sigma), 2, mu, "+")
}

#' The Multivariate Student-t Distribution
Expand Down

0 comments on commit 4bec335

Please sign in to comment.