Skip to content

Commit fd107e9

Browse files
committed
use suffic _Impl of actual C++ routine for fastLm
1 parent 17eb66c commit fd107e9

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

R/RcppExports.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file was generated by Rcpp::compileAttributes
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

4-
fastLm <- function(X, y, type) {
5-
.Call('RcppEigen_fastLm', PACKAGE = 'RcppEigen', X, y, type)
4+
fastLm_Impl <- function(X, y, type) {
5+
.Call('RcppEigen_fastLm_Impl', PACKAGE = 'RcppEigen', X, y, type)
66
}
77

88
eigen_version <- function(single) {

R/fastLm.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fastLmPure <- function(X, y, method = 0L) {
2121

2222
stopifnot(is.matrix(X), is.numeric(y), NROW(y)==nrow(X))
2323

24-
.Call("RcppEigen_fastLm", X, y, method, colnames(X), PACKAGE="RcppEigen")
24+
.Call("RcppEigen_fastLm_Impl", X, y, method, colnames(X), PACKAGE="RcppEigen")
2525
}
2626

2727
fastLm <- function(X, ...) UseMethod("fastLm")

inst/unitTests/runit.fastLm.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@
2424

2525
test.fastLm <- function() {
2626
data(trees, package="datasets")
27-
flm0 <- .Call("RcppEigen_fastLm",
27+
flm0 <- .Call("RcppEigen_fastLm_Impl",
2828
cbind(1, log(trees$Girth)),
2929
log(trees$Volume), 0L,
3030
PACKAGE="RcppEigen")
31-
flm1 <- .Call("RcppEigen_fastLm",
31+
flm1 <- .Call("RcppEigen_fastLm_Impl",
3232
cbind(1, log(trees$Girth)),
3333
log(trees$Volume), 1L,
3434
PACKAGE="RcppEigen")
35-
flm2 <- .Call("RcppEigen_fastLm",
35+
flm2 <- .Call("RcppEigen_fastLm_Impl",
3636
cbind(1, log(trees$Girth)),
3737
log(trees$Volume), 2L,
3838
PACKAGE="RcppEigen")
39-
flm3 <- .Call("RcppEigen_fastLm",
39+
flm3 <- .Call("RcppEigen_fastLm_Impl",
4040
cbind(1, log(trees$Girth)),
4141
log(trees$Volume), 3L,
4242
PACKAGE="RcppEigen")
43-
flm4 <- .Call("RcppEigen_fastLm",
43+
flm4 <- .Call("RcppEigen_fastLm_Impl",
4444
cbind(1, log(trees$Girth)),
4545
log(trees$Volume), 4L,
4646
PACKAGE="RcppEigen")
47-
flm5 <- .Call("RcppEigen_fastLm",
47+
flm5 <- .Call("RcppEigen_fastLm_Impl",
4848
cbind(1, log(trees$Girth)),
4949
log(trees$Volume), 5L,
5050
PACKAGE="RcppEigen")

src/RcppExports.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66

77
using namespace Rcpp;
88

9-
// fastLm
10-
Rcpp::List fastLm(Rcpp::NumericMatrix X, Rcpp::NumericVector y, int type);
11-
RcppExport SEXP RcppEigen_fastLm(SEXP XSEXP, SEXP ySEXP, SEXP typeSEXP) {
9+
// fastLm_Impl
10+
Rcpp::List fastLm_Impl(Rcpp::NumericMatrix X, Rcpp::NumericVector y, int type);
11+
RcppExport SEXP RcppEigen_fastLm_Impl(SEXP XSEXP, SEXP ySEXP, SEXP typeSEXP) {
1212
BEGIN_RCPP
1313
Rcpp::RObject __result;
1414
Rcpp::RNGScope __rngScope;
1515
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type X(XSEXP);
1616
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type y(ySEXP);
1717
Rcpp::traits::input_parameter< int >::type type(typeSEXP);
18-
__result = Rcpp::wrap(fastLm(X, y, type));
18+
__result = Rcpp::wrap(fastLm_Impl(X, y, type));
1919
return __result;
2020
END_RCPP
2121
}

src/fastLm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ namespace lmsol {
240240

241241
// This defines the R-callable function 'fastLm'
242242
// [[Rcpp::export]]
243-
Rcpp::List fastLm(Rcpp::NumericMatrix X, Rcpp::NumericVector y, int type) {
243+
Rcpp::List fastLm_Impl(Rcpp::NumericMatrix X, Rcpp::NumericVector y, int type) {
244244
return lmsol::fastLm(X, y, type);
245245
}
246246

0 commit comments

Comments
 (0)