Skip to content

Commit 7d063b4

Browse files
authored
Merge pull request #800 from RcppCore/feature/completePR799
Feature/complete pr799
2 parents 469da1c + bd491da commit 7d063b4

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

ChangeLog

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
2018-01-14 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/include/Rcpp/traits/is_na.h (Rcpp): Also speed up
4+
Rcpp::is_na<Rcomplex>
5+
6+
2018-01-11 Kirill Müller <[email protected]>
7+
8+
* inst/include/Rcpp/traits/is_na.h: Speed up Rcpp::is_na<double>()
9+
110
2018-01-09 Iñaki Ucar <[email protected]>
211

312
* inst/include/Rcpp/vector/proxy.h: Improve support for NVCC, the CUDA
4-
compiler (pull request #798, fixed issue #797)
513

614
2018-01-06 Kendon Bell <[email protected]>
715

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 0.12.14.5
4-
Date: 2017-12-21
3+
Version: 0.12.14.6
4+
Date: 2018-01-14
55
Author: Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou,
66
Nathan Russell, Douglas Bates and John Chambers
77
Maintainer: Dirk Eddelbuettel <[email protected]>

inst/include/Rcpp/traits/is_na.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//
33
// is_na.h: Rcpp R/C++ interface class library -- vector operators
44
//
5-
// Copyright (C) 2010 - 2013 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2010 - 2018 Dirk Eddelbuettel and Romain Francois
6+
// Copyright (C) 2018 Dirk Eddelbuettel and Kirill Mueller
67
//
78
// This file is part of Rcpp.
89
//
@@ -39,13 +40,12 @@ namespace Rcpp{
3940

4041
template <>
4142
inline bool is_na<REALSXP>(double x) {
42-
return internal::Rcpp_IsNA(x) || internal::Rcpp_IsNaN(x);
43+
return R_isnancpp(x);
4344
}
4445

4546
template <>
4647
inline bool is_na<CPLXSXP>(Rcomplex x) {
47-
return internal::Rcpp_IsNA(x.r) || internal::Rcpp_IsNA(x.i) ||
48-
internal::Rcpp_IsNaN(x.r) || internal::Rcpp_IsNaN(x.i);
48+
return R_isnancpp(x.r) || R_isnancpp(x.i);
4949
}
5050

5151
template <>

0 commit comments

Comments
 (0)