Revision 94a7e298b1a50d93e8a9ccb813a070f7b30f3da1 authored by Christian Thiele on 21 March 2018, 08:27:24 UTC, committed by cran-robot on 21 March 2018, 08:27:24 UTC
0 parent
is_equal_cpp.cpp
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
LogicalVector is_equal_cpp_char(CharacterVector x, String y){
Rcpp::LogicalVector r(x.size());
for(int i=0; i<x.size(); i++){
r[i] = (x[i] == y);
}
return(r);
}
// [[Rcpp::export]]
LogicalVector is_equal_cpp_num(NumericVector x, double y){
Rcpp::LogicalVector r(x.size());
for(int i=0; i<x.size(); i++){
r[i] = (x[i] == y);
}
return(r);
}
Computing file changes ...