diff --git a/ChangeLog b/ChangeLog index c471c0a1..c796b6af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ 2024-02-18 Dirk Eddelbuettel - * src/fastLm.cpp: Switch to RcppArmadillo/Lightest + * src/fastLm.cpp: Switch to RcppArmadillo/Lighter * src/RcppArmadillo.cpp: Idem * README.md: Update count to February 2024, update example, edits diff --git a/README.md b/README.md index d7317d05..ef3e25a6 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ a good balance between speed and ease of use. It provides high-level syntax and Glad you asked. Here is a light-weight and fast implementation of linear regression: ```c++ -#include +#include // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::export]] @@ -58,10 +58,10 @@ the file above to compile the function. A version is also included in the package [as the `fastLm()`](https://github.com/RcppCore/RcppArmadillo/blob/master/R/fastLm.R) function. -The `RcppArmadillo/Lightest` header includes [Rcpp][rcpp] via its `Rcpp/Lightest` header which +The `RcppArmadillo/Lighter` header includes [Rcpp][rcpp] via its `Rcpp/Lighter` header which precludes some more compile-time heavy features such as 'Rcpp Modules' which we may not need. See the [Rcpp][rcpp] docs more details about 'Light', 'Lighter' and 'Lightest'. In the example above, -the switch saves about 15% to 20% of total compilation time. +the switch saves about 15% of total compilation time. ### Status diff --git a/src/RcppArmadillo.cpp b/src/RcppArmadillo.cpp index d215cbb2..01c1ebf8 100644 --- a/src/RcppArmadillo.cpp +++ b/src/RcppArmadillo.cpp @@ -18,7 +18,7 @@ // You should have received a copy of the GNU General Public License // along with RcppArmadillo. If not, see . -#include +#include //' Report the version of Armadillo //' diff --git a/src/fastLm.cpp b/src/fastLm.cpp index 9aeafd2d..41b277e5 100644 --- a/src/fastLm.cpp +++ b/src/fastLm.cpp @@ -19,7 +19,7 @@ // You should have received a copy of the GNU General Public License // along with RcppArmadillo. If not, see . -#include +#include // [[Rcpp::export]] Rcpp::List fastLm_impl(const arma::mat& X, const arma::colvec& y) {