From 429b648b77d6fb15ea61016c75f9db7bc92dcbc3 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 14 Jan 2024 21:08:48 +0200 Subject: [PATCH] Formatting --- inst/include/rcpp_eigen_interop.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inst/include/rcpp_eigen_interop.hpp b/inst/include/rcpp_eigen_interop.hpp index 18343e08..9e6c4b54 100644 --- a/inst/include/rcpp_eigen_interop.hpp +++ b/inst/include/rcpp_eigen_interop.hpp @@ -25,12 +25,12 @@ namespace Rcpp { Rcpp::internal::export_indexing, T>(object, result); return result; } else { - Shield dims( ::Rf_getAttrib( object, R_DimSymbol ) ); - if( Rf_isNull(dims) || Rf_length(dims) != 2 ){ - throw ::Rcpp::not_a_matrix(); + Shield dims(Rf_getAttrib(object, R_DimSymbol)); + if (Rf_isNull(dims) || Rf_length(dims) != 2) { + throw Rcpp::not_a_matrix(); } int* dims_ = INTEGER(dims); - Eigen::Matrix result(dims_[0],dims_[1]); + Eigen::Matrix result(dims_[0], dims_[1]); T* result_data = result.data(); Rcpp::internal::export_indexing(object, result_data); return result; @@ -44,7 +44,7 @@ namespace Rcpp { namespace RcppEigen { template SEXP eigen_wrap(const T& x) { - const static int RTYPE = ::Rcpp::traits::r_sexptype_traits>::rtype; + const static int RTYPE = Rcpp::traits::r_sexptype_traits>::rtype; Rcpp::Vector vec_rtn(Rcpp::wrap(stan::math::to_array_1d(x))); if (x.cols() > 1) { vec_rtn.attr("dim") = Rcpp::Dimension(x.rows(), x.cols());