File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
- PKG_CFLAGS= -I.
2
- PKG_CPPFLAGS= -I.
1
+ PKG_CFLAGS= -I. -DCOLUMN_MAJOR_ORDER
2
+ PKG_CPPFLAGS= -I. -DCOLUMN_MAJOR_ORDER
3
3
PKG_LIBS=-L.
4
4
5
5
$(SHLIB): Rcpp Rcpp-matrixcomps.o Rcpp-debias.o RcppExports.o quadratic_program.o quadratic_program_wide.o
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ Rcpp::List solve_QP_wide(Rcpp::NumericMatrix X,
101
101
int param_stop
102
102
) {
103
103
104
- int column_major = 1 ; // R has matrices in column major order
105
104
int ncase = X.nrow (); // number of cases
106
105
int nfeature = X.ncol (); // number of features
107
106
@@ -140,7 +139,6 @@ Rcpp::List solve_QP_wide(Rcpp::NumericMatrix X,
140
139
(int *) nactive.begin (),
141
140
ncase,
142
141
nfeature,
143
- column_major,
144
142
(double *) bound.begin (),
145
143
ridge_term,
146
144
(double *) theta.begin (),
@@ -164,7 +162,6 @@ Rcpp::List solve_QP_wide(Rcpp::NumericMatrix X,
164
162
(int *) need_update.begin (),
165
163
nfeature,
166
164
ncase,
167
- column_major,
168
165
(double *) bound.begin (),
169
166
ridge_term,
170
167
kkt_tol);
@@ -179,8 +176,7 @@ Rcpp::List solve_QP_wide(Rcpp::NumericMatrix X,
179
176
(double *) linear_func.begin (),
180
177
(int *) need_update.begin (),
181
178
nfeature,
182
- ncase,
183
- column_major);
179
+ ncase);
184
180
185
181
return (Rcpp::List::create (Rcpp::Named (" soln" ) = theta,
186
182
Rcpp::Named (" gradient" ) = gradient,
You can’t perform that action at this time.
0 commit comments