Skip to content

Commit

Permalink
Replace erroneous | in C++ sampling functions by ||.
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmohr committed Jun 22, 2023
1 parent 72e3e10 commit b99dea1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bgvaralg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Rcpp::List bgvaralg(Rcpp::List object) {
sigma_i = omega_i;
}
diag_sigma_i.diag() = arma::repmat(sigma_i.diag(), tt, 1);
if (covar | sv) {
if (covar || sv) {
diag_omega_i = diag_sigma_i;
}

Expand Down
2 changes: 1 addition & 1 deletion src/bgvartvpalg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Rcpp::List bgvartvpalg(Rcpp::List object) {
sigma_u_i = omega_i;
}
diag_sigma_u_i.diag() = arma::repmat(sigma_u_i.diag(), tt, 1);
if (covar | sv) {
if (covar || sv) {
diag_omega_i = diag_sigma_u_i;
}

Expand Down
2 changes: 1 addition & 1 deletion src/bgvecalg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Rcpp::List bgvecalg(Rcpp::List object) {
sigma_i = omega_i;
}
diag_sigma_i = arma::kron(diag_tt, sigma_i);
if (covar | sv) {
if (covar || sv) {
diag_omega_i = diag_sigma_i;
}
g_i = sigma_i;
Expand Down
2 changes: 1 addition & 1 deletion src/bgvectvpalg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Rcpp::List bgvectvpalg(Rcpp::List object) {
sigma_u_i = omega_i;
}
diag_sigma_u_i = arma::kron(diag_tt, sigma_u_i); //diag_sigma_u_i.diag() = arma::repmat(sigma_u_i.diag(), tt, 1);
if (covar | sv) {
if (covar || sv) {
diag_omega_i = diag_sigma_u_i;
}

Expand Down

0 comments on commit b99dea1

Please sign in to comment.