From 9aca271850149ebf23d38e0e8013bad2be50d891 Mon Sep 17 00:00:00 2001 From: adamwang15 Date: Sat, 10 Aug 2024 01:37:44 +1000 Subject: [PATCH] separate ZF #43 --- src/restrictions_zero.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/restrictions_zero.cpp b/src/restrictions_zero.cpp index 7a07cd7..c75c02d 100644 --- a/src/restrictions_zero.cpp +++ b/src/restrictions_zero.cpp @@ -37,11 +37,12 @@ arma::colvec zero_restrictions( mat A0 = reshape(vec_structural.rows(0, N * N - 1), N, N); - arma::field ZF = ZIRF(Z, inv(A0.t())); + field 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;