1
- // Generated by using Rcpp::compileAttributes() -> do not edit by hand
1
+ // This file was generated by Rcpp::compileAttributes
2
2
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
3
3
4
4
#include < Rcpp.h>
@@ -7,10 +7,10 @@ using namespace Rcpp;
7
7
8
8
// solve_QP
9
9
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) {
11
11
BEGIN_RCPP
12
- Rcpp::RObject rcpp_result_gen ;
13
- Rcpp::RNGScope rcpp_rngScope_gen ;
12
+ Rcpp::RObject __result ;
13
+ Rcpp::RNGScope __rngScope ;
14
14
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type Sigma (SigmaSEXP);
15
15
Rcpp::traits::input_parameter< double >::type bound (boundSEXP);
16
16
Rcpp::traits::input_parameter< int >::type maxiter (maxiterSEXP);
@@ -22,70 +22,58 @@ BEGIN_RCPP
22
22
Rcpp::traits::input_parameter< double >::type kkt_tol (kkt_tolSEXP);
23
23
Rcpp::traits::input_parameter< double >::type objective_tol (objective_tolSEXP);
24
24
Rcpp::traits::input_parameter< int >::type max_active (max_activeSEXP);
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 ;
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 ;
27
27
END_RCPP
28
28
}
29
29
// solve_QP_wide
30
- Rcpp::List solve_QP_wide (Rcpp::NumericMatrix X, 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);
31
- RcppExport SEXP _selectiveInference_solve_QP_wide (SEXP XSEXP, 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) {
30
+ Rcpp::List solve_QP_wide (Rcpp::NumericMatrix X, double bound, int maxiter, Rcpp::NumericVector theta, Rcpp::NumericVector linear_func, Rcpp::NumericVector gradient, Rcpp::NumericVector X_theta, Rcpp:: IntegerVector ever_active, Rcpp::IntegerVector nactive, double kkt_tol, double objective_tol, int max_active);
31
+ RcppExport SEXP selectiveInference_solve_QP_wide (SEXP XSEXP, SEXP boundSEXP, SEXP maxiterSEXP, SEXP thetaSEXP, SEXP linear_funcSEXP, SEXP gradientSEXP, SEXP X_thetaSEXP , SEXP ever_activeSEXP, SEXP nactiveSEXP, SEXP kkt_tolSEXP, SEXP objective_tolSEXP, SEXP max_activeSEXP) {
32
32
BEGIN_RCPP
33
- Rcpp::RObject rcpp_result_gen ;
34
- Rcpp::RNGScope rcpp_rngScope_gen ;
33
+ Rcpp::RObject __result ;
34
+ Rcpp::RNGScope __rngScope ;
35
35
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type X (XSEXP);
36
36
Rcpp::traits::input_parameter< double >::type bound (boundSEXP);
37
37
Rcpp::traits::input_parameter< int >::type maxiter (maxiterSEXP);
38
38
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type theta (thetaSEXP);
39
39
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type linear_func (linear_funcSEXP);
40
40
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type gradient (gradientSEXP);
41
+ Rcpp::traits::input_parameter< Rcpp::NumericVector >::type X_theta (X_thetaSEXP);
41
42
Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ever_active (ever_activeSEXP);
42
43
Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type nactive (nactiveSEXP);
43
44
Rcpp::traits::input_parameter< double >::type kkt_tol (kkt_tolSEXP);
44
45
Rcpp::traits::input_parameter< double >::type objective_tol (objective_tolSEXP);
45
46
Rcpp::traits::input_parameter< int >::type max_active (max_activeSEXP);
46
- rcpp_result_gen = Rcpp::wrap (solve_QP_wide (X, bound, maxiter, theta, linear_func, gradient, ever_active, nactive, kkt_tol, objective_tol, max_active));
47
- return rcpp_result_gen ;
47
+ __result = Rcpp::wrap (solve_QP_wide (X, bound, maxiter, theta, linear_func, gradient, X_theta , ever_active, nactive, kkt_tol, objective_tol, max_active));
48
+ return __result ;
48
49
END_RCPP
49
50
}
50
51
// update1_
51
52
Rcpp::List update1_ (Rcpp::NumericMatrix Q2, Rcpp::NumericVector w, int m, int k);
52
- RcppExport SEXP _selectiveInference_update1_ (SEXP Q2SEXP, SEXP wSEXP, SEXP mSEXP , SEXP kSEXP ) {
53
+ RcppExport SEXP selectiveInference_update1_ (SEXP Q2SEXP, SEXP wSEXP, SEXP mSEXP , SEXP kSEXP ) {
53
54
BEGIN_RCPP
54
- Rcpp::RObject rcpp_result_gen ;
55
- Rcpp::RNGScope rcpp_rngScope_gen ;
55
+ Rcpp::RObject __result ;
56
+ Rcpp::RNGScope __rngScope ;
56
57
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type Q2 (Q2SEXP);
57
58
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type w (wSEXP);
58
59
Rcpp::traits::input_parameter< int >::type m (mSEXP );
59
60
Rcpp::traits::input_parameter< int >::type k (kSEXP );
60
- rcpp_result_gen = Rcpp::wrap (update1_ (Q2, w, m, k));
61
- return rcpp_result_gen ;
61
+ __result = Rcpp::wrap (update1_ (Q2, w, m, k));
62
+ return __result ;
62
63
END_RCPP
63
64
}
64
65
// downdate1_
65
66
Rcpp::List downdate1_ (Rcpp::NumericMatrix Q1, Rcpp::NumericMatrix R, int j0, int m, int n);
66
- RcppExport SEXP _selectiveInference_downdate1_ (SEXP Q1SEXP, SEXP RSEXP, SEXP j0SEXP, SEXP mSEXP , SEXP nSEXP) {
67
+ RcppExport SEXP selectiveInference_downdate1_ (SEXP Q1SEXP, SEXP RSEXP, SEXP j0SEXP, SEXP mSEXP , SEXP nSEXP) {
67
68
BEGIN_RCPP
68
- Rcpp::RObject rcpp_result_gen ;
69
- Rcpp::RNGScope rcpp_rngScope_gen ;
69
+ Rcpp::RObject __result ;
70
+ Rcpp::RNGScope __rngScope ;
70
71
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type Q1 (Q1SEXP);
71
72
Rcpp::traits::input_parameter< Rcpp::NumericMatrix >::type R (RSEXP);
72
73
Rcpp::traits::input_parameter< int >::type j0 (j0SEXP);
73
74
Rcpp::traits::input_parameter< int >::type m (mSEXP );
74
75
Rcpp::traits::input_parameter< int >::type n (nSEXP);
75
- rcpp_result_gen = Rcpp::wrap (downdate1_ (Q1, R, j0, m, n));
76
- return rcpp_result_gen ;
76
+ __result = Rcpp::wrap (downdate1_ (Q1, R, j0, m, n));
77
+ return __result ;
77
78
END_RCPP
78
79
}
79
-
80
- static const R_CallMethodDef CallEntries[] = {
81
- {" _selectiveInference_solve_QP" , (DL_FUNC) &_selectiveInference_solve_QP, 11 },
82
- {" _selectiveInference_solve_QP_wide" , (DL_FUNC) &_selectiveInference_solve_QP_wide, 11 },
83
- {" _selectiveInference_update1_" , (DL_FUNC) &_selectiveInference_update1_, 4 },
84
- {" _selectiveInference_downdate1_" , (DL_FUNC) &_selectiveInference_downdate1_, 5 },
85
- {NULL , NULL , 0 }
86
- };
87
-
88
- RcppExport void R_init_selectiveInference (DllInfo *dll) {
89
- R_registerRoutines (dll, NULL , CallEntries, NULL , NULL );
90
- R_useDynamicSymbols (dll, FALSE );
91
- }
0 commit comments