Skip to content

Commit

Permalink
Update restrictions_zero.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwang15 committed Aug 9, 2024
1 parent 1d560cb commit 8330418
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/restrictions_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ arma::colvec zero_restrictions(

mat A0 = reshape(vec_structural.rows(0, N * N - 1), N, N);

field<mat> ZF = ZIRF(Z, inv(A0.t()));
mat irf_0 = inv(A0.t());

vec z;
for (int j = 0; j < ZF.n_elem; j++) {
mat ZF_j = ZF(j);
z = join_vert(z, ZF_j.col(j));
for (int j = 0; j < Z.n_elem; j++) {
mat ZF = Z(j) * irf_0;
z = join_vert(z, ZF.col(j));
}

return z;
Expand Down

0 comments on commit 8330418

Please sign in to comment.