diff --git a/inst/include/bsvarSIGNs_RcppExports.h b/inst/include/bsvarSIGNs_RcppExports.h index 3c80632..1434293 100644 --- a/inst/include/bsvarSIGNs_RcppExports.h +++ b/inst/include/bsvarSIGNs_RcppExports.h @@ -277,11 +277,11 @@ namespace bsvarSIGNs { return Rcpp::as >(rcpp_result_gen); } - inline arma::colvec zero_restrictions(arma::field& Z, arma::vec vec_structural) { + inline arma::colvec zero_restrictions(arma::field Z, arma::vec vec_structural) { typedef SEXP(*Ptr_zero_restrictions)(SEXP,SEXP); static Ptr_zero_restrictions p_zero_restrictions = NULL; if (p_zero_restrictions == NULL) { - validateSignature("arma::colvec(*zero_restrictions)(arma::field&,arma::vec)"); + validateSignature("arma::colvec(*zero_restrictions)(arma::field,arma::vec)"); p_zero_restrictions = (Ptr_zero_restrictions)R_GetCCallable("bsvarSIGNs", "_bsvarSIGNs_zero_restrictions"); } RObject rcpp_result_gen; diff --git a/src/RcppExports.cpp b/src/RcppExports.cpp index 2c3e309..ec5f441 100644 --- a/src/RcppExports.cpp +++ b/src/RcppExports.cpp @@ -463,11 +463,11 @@ RcppExport SEXP _bsvarSIGNs_ZIRF(SEXP ZSEXP, SEXP irf_0SEXP) { return rcpp_result_gen; } // zero_restrictions -arma::colvec zero_restrictions(arma::field& Z, arma::vec vec_structural); +arma::colvec zero_restrictions(arma::field Z, arma::vec vec_structural); static SEXP _bsvarSIGNs_zero_restrictions_try(SEXP ZSEXP, SEXP vec_structuralSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; - Rcpp::traits::input_parameter< arma::field& >::type Z(ZSEXP); + Rcpp::traits::input_parameter< arma::field >::type Z(ZSEXP); Rcpp::traits::input_parameter< arma::vec >::type vec_structural(vec_structuralSEXP); rcpp_result_gen = Rcpp::wrap(zero_restrictions(Z, vec_structural)); return rcpp_result_gen; @@ -1058,7 +1058,7 @@ static int _bsvarSIGNs_RcppExport_validate(const char* sig) { signatures.insert("bool(*match_sign_narrative)(const arma::mat&,const arma::mat&,const arma::cube&)"); signatures.insert("double(*weight_narrative)(const int&,arma::mat,const arma::cube&)"); signatures.insert("arma::field(*ZIRF)(arma::field&,const arma::mat&)"); - signatures.insert("arma::colvec(*zero_restrictions)(arma::field&,arma::vec)"); + signatures.insert("arma::colvec(*zero_restrictions)(arma::field,arma::vec)"); signatures.insert("arma::colvec(*g_fh)(arma::field&,const arma::mat&,const arma::mat&)"); signatures.insert("arma::colvec(*g_fh_vec)(arma::field&,const arma::colvec)"); signatures.insert("double(*log_volume_element)(arma::field&,const arma::mat&,const arma::mat&)"); diff --git a/src/restrictions_zero.cpp b/src/restrictions_zero.cpp index 981c664..75b3130 100644 --- a/src/restrictions_zero.cpp +++ b/src/restrictions_zero.cpp @@ -30,7 +30,7 @@ arma::field ZIRF( // [[Rcpp::interfaces(cpp)]] // [[Rcpp::export]] arma::colvec zero_restrictions( - arma::field& Z, + arma::field Z, arma::vec vec_structural ) { int N = Z(0).n_cols;