MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / fill_and_get_duplicated

Method fill_and_get_duplicated

inst/include/Rcpp/hash/IndexHash.h:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 inline LogicalVector fill_and_get_duplicated() {
86 LogicalVector result = no_init(n) ;
87 int* res = LOGICAL(result) ;
88 for( int i=0; i<n; i++) res[i] = ! add_value(i) ;
89 return result ;
90 }
91
92 template <typename T>
93 inline SEXP lookup(const T& vec) const {

Callers 1

duplicatedFunction · 0.80

Calls 1

no_initFunction · 0.85

Tested by

no test coverage detected