Skip to content

Commit

Permalink
separate ZF #43
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwang15 committed Aug 9, 2024
1 parent 60d89c4 commit 9aca271
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/restrictions_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ arma::colvec zero_restrictions(

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

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

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

return z;
Expand Down

0 comments on commit 9aca271

Please sign in to comment.