Skip to content

Commit 0a3bc8d

Browse files
new versions of RcppExports
1 parent 7040ad4 commit 0a3bc8d

File tree

2 files changed

+32
-20
lines changed

2 files changed

+32
-20
lines changed

selectiveInference/R/RcppExports.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# This file was generated by Rcpp::compileAttributes
1+
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

44
solve_QP <- function(Sigma, bound, maxiter, theta, linear_func, gradient, ever_active, nactive, kkt_tol, objective_tol, max_active) {
5-
.Call('selectiveInference_solve_QP', PACKAGE = 'selectiveInference', Sigma, bound, maxiter, theta, linear_func, gradient, ever_active, nactive, kkt_tol, objective_tol, max_active)
5+
.Call('_selectiveInference_solve_QP', PACKAGE = 'selectiveInference', Sigma, bound, maxiter, theta, linear_func, gradient, ever_active, nactive, kkt_tol, objective_tol, max_active)
66
}
77

88
update1_ <- function(Q2, w, m, k) {
9-
.Call('selectiveInference_update1_', PACKAGE = 'selectiveInference', Q2, w, m, k)
9+
.Call('_selectiveInference_update1_', PACKAGE = 'selectiveInference', Q2, w, m, k)
1010
}
1111

1212
downdate1_ <- function(Q1, R, j0, m, n) {
13-
.Call('selectiveInference_downdate1_', PACKAGE = 'selectiveInference', Q1, R, j0, m, n)
13+
.Call('_selectiveInference_downdate1_', PACKAGE = 'selectiveInference', Q1, R, j0, m, n)
1414
}
1515

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was generated by Rcpp::compileAttributes
1+
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

44
#include <Rcpp.h>
@@ -7,10 +7,10 @@ using namespace Rcpp;
77

88
// solve_QP
99
Rcpp::List solve_QP(Rcpp::NumericMatrix Sigma, double bound, int maxiter, Rcpp::NumericVector theta, Rcpp::NumericVector linear_func, Rcpp::NumericVector gradient, Rcpp::IntegerVector ever_active, Rcpp::IntegerVector nactive, double kkt_tol, double objective_tol, int max_active);
10-
RcppExport SEXP selectiveInference_solve_QP(SEXP SigmaSEXP, SEXP boundSEXP, SEXP maxiterSEXP, SEXP thetaSEXP, SEXP linear_funcSEXP, SEXP gradientSEXP, SEXP ever_activeSEXP, SEXP nactiveSEXP, SEXP kkt_tolSEXP, SEXP objective_tolSEXP, SEXP max_activeSEXP) {
10+
RcppExport SEXP _selectiveInference_solve_QP(SEXP SigmaSEXP, SEXP boundSEXP, SEXP maxiterSEXP, SEXP thetaSEXP, SEXP linear_funcSEXP, SEXP gradientSEXP, SEXP ever_activeSEXP, SEXP nactiveSEXP, SEXP kkt_tolSEXP, SEXP objective_tolSEXP, SEXP max_activeSEXP) {
1111
BEGIN_RCPP
12-
Rcpp::RObject __result;
13-
Rcpp::RNGScope __rngScope;
12+
Rcpp::RObject rcpp_result_gen;
13+
Rcpp::RNGScope rcpp_rngScope_gen;
1414
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type Sigma(SigmaSEXP);
1515
Rcpp::traits::input_parameter< double >::type bound(boundSEXP);
1616
Rcpp::traits::input_parameter< int >::type maxiter(maxiterSEXP);
@@ -22,36 +22,48 @@ BEGIN_RCPP
2222
Rcpp::traits::input_parameter< double >::type kkt_tol(kkt_tolSEXP);
2323
Rcpp::traits::input_parameter< double >::type objective_tol(objective_tolSEXP);
2424
Rcpp::traits::input_parameter< int >::type max_active(max_activeSEXP);
25-
__result = Rcpp::wrap(solve_QP(Sigma, bound, maxiter, theta, linear_func, gradient, ever_active, nactive, kkt_tol, objective_tol, max_active));
26-
return __result;
25+
rcpp_result_gen = Rcpp::wrap(solve_QP(Sigma, bound, maxiter, theta, linear_func, gradient, ever_active, nactive, kkt_tol, objective_tol, max_active));
26+
return rcpp_result_gen;
2727
END_RCPP
2828
}
2929
// update1_
3030
Rcpp::List update1_(Rcpp::NumericMatrix Q2, Rcpp::NumericVector w, int m, int k);
31-
RcppExport SEXP selectiveInference_update1_(SEXP Q2SEXP, SEXP wSEXP, SEXP mSEXP, SEXP kSEXP) {
31+
RcppExport SEXP _selectiveInference_update1_(SEXP Q2SEXP, SEXP wSEXP, SEXP mSEXP, SEXP kSEXP) {
3232
BEGIN_RCPP
33-
Rcpp::RObject __result;
34-
Rcpp::RNGScope __rngScope;
33+
Rcpp::RObject rcpp_result_gen;
34+
Rcpp::RNGScope rcpp_rngScope_gen;
3535
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type Q2(Q2SEXP);
3636
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type w(wSEXP);
3737
Rcpp::traits::input_parameter< int >::type m(mSEXP);
3838
Rcpp::traits::input_parameter< int >::type k(kSEXP);
39-
__result = Rcpp::wrap(update1_(Q2, w, m, k));
40-
return __result;
39+
rcpp_result_gen = Rcpp::wrap(update1_(Q2, w, m, k));
40+
return rcpp_result_gen;
4141
END_RCPP
4242
}
4343
// downdate1_
4444
Rcpp::List downdate1_(Rcpp::NumericMatrix Q1, Rcpp::NumericMatrix R, int j0, int m, int n);
45-
RcppExport SEXP selectiveInference_downdate1_(SEXP Q1SEXP, SEXP RSEXP, SEXP j0SEXP, SEXP mSEXP, SEXP nSEXP) {
45+
RcppExport SEXP _selectiveInference_downdate1_(SEXP Q1SEXP, SEXP RSEXP, SEXP j0SEXP, SEXP mSEXP, SEXP nSEXP) {
4646
BEGIN_RCPP
47-
Rcpp::RObject __result;
48-
Rcpp::RNGScope __rngScope;
47+
Rcpp::RObject rcpp_result_gen;
48+
Rcpp::RNGScope rcpp_rngScope_gen;
4949
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type Q1(Q1SEXP);
5050
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type R(RSEXP);
5151
Rcpp::traits::input_parameter< int >::type j0(j0SEXP);
5252
Rcpp::traits::input_parameter< int >::type m(mSEXP);
5353
Rcpp::traits::input_parameter< int >::type n(nSEXP);
54-
__result = Rcpp::wrap(downdate1_(Q1, R, j0, m, n));
55-
return __result;
54+
rcpp_result_gen = Rcpp::wrap(downdate1_(Q1, R, j0, m, n));
55+
return rcpp_result_gen;
5656
END_RCPP
5757
}
58+
59+
static const R_CallMethodDef CallEntries[] = {
60+
{"_selectiveInference_solve_QP", (DL_FUNC) &_selectiveInference_solve_QP, 11},
61+
{"_selectiveInference_update1_", (DL_FUNC) &_selectiveInference_update1_, 4},
62+
{"_selectiveInference_downdate1_", (DL_FUNC) &_selectiveInference_downdate1_, 5},
63+
{NULL, NULL, 0}
64+
};
65+
66+
RcppExport void R_init_selectiveInference(DllInfo *dll) {
67+
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
68+
R_useDynamicSymbols(dll, FALSE);
69+
}

0 commit comments

Comments
 (0)