diff --git a/src/bgvaralg.cpp b/src/bgvaralg.cpp index c601338..4be4c04 100644 --- a/src/bgvaralg.cpp +++ b/src/bgvaralg.cpp @@ -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; } diff --git a/src/bgvartvpalg.cpp b/src/bgvartvpalg.cpp index 87de96a..10bd53c 100644 --- a/src/bgvartvpalg.cpp +++ b/src/bgvartvpalg.cpp @@ -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; } diff --git a/src/bgvecalg.cpp b/src/bgvecalg.cpp index c9a503a..ab6d667 100644 --- a/src/bgvecalg.cpp +++ b/src/bgvecalg.cpp @@ -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; diff --git a/src/bgvectvpalg.cpp b/src/bgvectvpalg.cpp index 7793806..aeecb57 100644 --- a/src/bgvectvpalg.cpp +++ b/src/bgvectvpalg.cpp @@ -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; }