Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jkennel committed Sep 18, 2023
1 parent d8e69cc commit 4e4cd11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ log_factorial <- function(x) {
.Call(`_earthtide_log_factorial`, x)
}

scale_legendre_bh <- function(l, m) {
.Call(`_earthtide_scale_legendre_bh`, l, m)
scale_legendre <- function(l, m) {
.Call(`_earthtide_scale_legendre`, l, m)
}

legendre_cpp <- function(l, m, x) {
Expand Down
10 changes: 5 additions & 5 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ BEGIN_RCPP
return rcpp_result_gen;
END_RCPP
}
// scale_legendre_bh
double scale_legendre_bh(int l, int m);
RcppExport SEXP _earthtide_scale_legendre_bh(SEXP lSEXP, SEXP mSEXP) {
// scale_legendre
double scale_legendre(int l, int m);
RcppExport SEXP _earthtide_scale_legendre(SEXP lSEXP, SEXP mSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< int >::type l(lSEXP);
Rcpp::traits::input_parameter< int >::type m(mSEXP);
rcpp_result_gen = Rcpp::wrap(scale_legendre_bh(l, m));
rcpp_result_gen = Rcpp::wrap(scale_legendre(l, m));
return rcpp_result_gen;
END_RCPP
}
Expand Down Expand Up @@ -295,7 +295,7 @@ static const R_CallMethodDef CallEntries[] = {
{"_earthtide_astro_der", (DL_FUNC) &_earthtide_astro_der, 2},
{"_earthtide_factorial", (DL_FUNC) &_earthtide_factorial, 1},
{"_earthtide_log_factorial", (DL_FUNC) &_earthtide_log_factorial, 1},
{"_earthtide_scale_legendre_bh", (DL_FUNC) &_earthtide_scale_legendre_bh, 2},
{"_earthtide_scale_legendre", (DL_FUNC) &_earthtide_scale_legendre, 2},
{"_earthtide_legendre_cpp", (DL_FUNC) &_earthtide_legendre_cpp, 3},
{"_earthtide_legendre_deriv_cpp", (DL_FUNC) &_earthtide_legendre_deriv_cpp, 3},
{"_earthtide_legendre", (DL_FUNC) &_earthtide_legendre, 2},
Expand Down
6 changes: 3 additions & 3 deletions src/astro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ double log_factorial(int x) {
}

// [[Rcpp::export]]
double scale_legendre_bh(int l, int m) {
double scale_legendre(int l, int m) {

double k = 2.0;

Expand Down Expand Up @@ -182,7 +182,7 @@ Eigen::MatrixXd legendre(int l_max, double x) {

for (int l = 2; l <= l_max; ++l){
for (int m = 0; m <= l; ++m){
scale = scale_legendre_bh(l, m);
scale = scale_legendre(l, m);
out(i, 0) = l;
out(i, 1) = m;
out(i, 2) = legendre_cpp(l, m, x) * scale;
Expand Down Expand Up @@ -226,7 +226,7 @@ Eigen::MatrixXd legendre(int l_max, double x) {
//
// for (int l = 2; l <= l_max; ++l){
// for (int m = 0; m <= l; ++m){
// scale = scale_legendre_bh(l, m);
// scale = scale_legendre(l, m);
// out(i, 0) = l;
// out(i, 1) = m;
// out(i, 2) = legendre_bh(l, m, x) * scale;
Expand Down

0 comments on commit 4e4cd11

Please sign in to comment.