Skip to content

Commit

Permalink
bugfix factor_restict = "upper"
Browse files Browse the repository at this point in the history
  • Loading branch information
lugruber committed Nov 13, 2024
1 parent f761004 commit b52b3cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bvar_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ List bvar_cpp(const arma::mat& Y,
arma::icolvec nonzerosperrow = arma::sum(factor_armarestr, 1);
for (unsigned int i = 0; i < armafacload.n_rows; i++) {
for (unsigned int j = 0; j < armafacload.n_cols; j++) {
if (factor_armarestr(i, j) == 0) armafacload(i,j) = 0.;
if (factor_armarestr(i, j) == 0) {
armafacload(i,j) = 0.;
armatau2(i,j) = 0.;
}
}
}

Expand Down

0 comments on commit b52b3cb

Please sign in to comment.