Skip to content

Commit a980a5b

Browse files
committed
clang++ prefers Lighter over Lightest
1 parent 1483c10 commit a980a5b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ChangeLog

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
2024-02-18 Dirk Eddelbuettel <[email protected]>
22

3-
* src/fastLm.cpp: Switch to RcppArmadillo/Lightest
3+
* src/fastLm.cpp: Switch to RcppArmadillo/Lighter
44
* src/RcppArmadillo.cpp: Idem
55

66
* README.md: Update count to February 2024, update example, edits

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ a good balance between speed and ease of use. It provides high-level syntax and
3434
Glad you asked. Here is a light-weight and fast implementation of linear regression:
3535

3636
```c++
37-
#include <RcppArmadillo/Lightest>
37+
#include <RcppArmadillo/Lighter>
3838
// [[Rcpp::depends(RcppArmadillo)]]
3939

4040
// [[Rcpp::export]]
@@ -58,10 +58,10 @@ the file above to compile the function. A version is also included in the
5858
package [as the `fastLm()`](https://github.com/RcppCore/RcppArmadillo/blob/master/R/fastLm.R)
5959
function.
6060
61-
The `RcppArmadillo/Lightest` header includes [Rcpp][rcpp] via its `Rcpp/Lightest` header which
61+
The `RcppArmadillo/Lighter` header includes [Rcpp][rcpp] via its `Rcpp/Lighter` header which
6262
precludes some more compile-time heavy features such as 'Rcpp Modules' which we may not need. See
6363
the [Rcpp][rcpp] docs more details about 'Light', 'Lighter' and 'Lightest'. In the example above,
64-
the switch saves about 15% to 20% of total compilation time.
64+
the switch saves about 15% of total compilation time.
6565
6666
### Status
6767

src/RcppArmadillo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// You should have received a copy of the GNU General Public License
1919
// along with RcppArmadillo. If not, see <http://www.gnu.org/licenses/>.
2020

21-
#include <RcppArmadillo/Lightest>
21+
#include <RcppArmadillo/Lighter>
2222

2323
//' Report the version of Armadillo
2424
//'

src/fastLm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// You should have received a copy of the GNU General Public License
2020
// along with RcppArmadillo. If not, see <http://www.gnu.org/licenses/>.
2121

22-
#include <RcppArmadillo/Lightest>
22+
#include <RcppArmadillo/Lighter>
2323

2424
// [[Rcpp::export]]
2525
Rcpp::List fastLm_impl(const arma::mat& X, const arma::colvec& y) {

0 commit comments

Comments
 (0)