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 9aca271 commit 1d560cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/restrictions_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ arma::colvec zero_restrictions(

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

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

return z;
Expand Down

0 comments on commit 1d560cb

Please sign in to comment.