From 235379660c7dd0b6d185ff052e25735c5cd73d23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Wo=C5=BAniak?= Date: Tue, 28 Jan 2025 14:21:19 +1100 Subject: [PATCH] get rid of the const to address the mistakes from CRAN #59 --- src/compute.cpp | 8 ++++---- src/compute.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/compute.cpp b/src/compute.cpp index 998c4a1..abf4f88 100644 --- a/src/compute.cpp +++ b/src/compute.cpp @@ -11,10 +11,10 @@ using namespace arma; // [[Rcpp::interfaces(cpp)]] // [[Rcpp::export]] arma::cube bsvarSIGNs_structural_shocks ( - const arma::cube& posterior_B, // (N, N, S) - const arma::cube& posterior_A, // (N, K, S) - const arma::mat& Y, // NxT dependent variables - const arma::mat& X // KxT dependent variables + arma::cube& posterior_B, // (N, N, S) + arma::cube& posterior_A, // (N, K, S) + arma::mat& Y, // NxT dependent variables + arma::mat& X // KxT dependent variables ) { cube structural_shocks = bsvars::bsvars_structural_shocks (posterior_B, posterior_A, Y, X); return structural_shocks; diff --git a/src/compute.h b/src/compute.h index 7c79e09..eace87f 100644 --- a/src/compute.h +++ b/src/compute.h @@ -6,10 +6,10 @@ arma::cube bsvarSIGNs_structural_shocks ( - const arma::cube& posterior_B, // (N, N, S) - const arma::cube& posterior_A, // (N, K, S) - const arma::mat& Y, // NxT dependent variables - const arma::mat& X // KxT dependent variables + arma::cube& posterior_B, // (N, N, S) + arma::cube& posterior_A, // (N, K, S) + arma::mat& Y, // NxT dependent variables + arma::mat& X // KxT dependent variables );