File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change
1
+ 2016-05-08 Dirk Eddelbuettel <
[email protected] >
2
+
3
+ * inst/unitTests/cpp/Matrix.cpp: Made four scalar/matrix tests less
4
+ ambiguous for overloads by using double as scalar
5
+
1
6
2016-05-06 Dirk Eddelbuettel <
[email protected] >
2
7
3
8
* R/loadRcppModules.R (loadRcppModules): Add call to .Deprecated
Original file line number Diff line number Diff line change 2
2
//
3
3
// Matrix.cpp: Rcpp R/C++ interface class library -- Matrix unit tests
4
4
//
5
- // Copyright (C) 2013 - 2014 Dirk Eddelbuettel, Romain Francois and Kevin Ushey
5
+ // Copyright (C) 2013 - 2016 Dirk Eddelbuettel, Romain Francois and Kevin Ushey
6
6
//
7
7
// This file is part of Rcpp.
8
8
//
@@ -313,21 +313,21 @@ CharacterMatrix transposeCharacter(const CharacterMatrix & x) {
313
313
}
314
314
315
315
// [[Rcpp::export]]
316
- NumericMatrix matrix_scalar_plus (const NumericMatrix & x, int y) {
316
+ NumericMatrix matrix_scalar_plus (const NumericMatrix & x, double y) {
317
317
return x + y;
318
318
}
319
319
320
320
// [[Rcpp::export]]
321
- NumericMatrix matrix_scalar_plus2 (const NumericMatrix & x, int y) {
321
+ NumericMatrix matrix_scalar_plus2 (const NumericMatrix & x, double y) {
322
322
return y + x;
323
323
}
324
324
325
325
// [[Rcpp::export]]
326
- NumericMatrix matrix_scalar_divide (const NumericMatrix & x, int y) {
326
+ NumericMatrix matrix_scalar_divide (const NumericMatrix & x, double y) {
327
327
return x / y;
328
328
}
329
329
330
330
// [[Rcpp::export]]
331
- NumericMatrix matrix_scalar_divide2 (const NumericMatrix & x, int y) {
331
+ NumericMatrix matrix_scalar_divide2 (const NumericMatrix & x, double y) {
332
332
return y / x;
333
333
}
You can’t perform that action at this time.
0 commit comments