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

Function self_match

inst/include/Rcpp/sugar/functions/self_match.h:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69template <int RTYPE, bool NA, typename T>
70inline IntegerVector self_match( const VectorBase<RTYPE,NA,T>& x ){
71 Vector<RTYPE> vec(x) ;
72 return sugar::SelfHash<RTYPE>(vec).fill_and_self_match() ;
73}
74
75
76} // Rcpp

Callers 1

runit_self_matchFunction · 0.85

Calls 1

fill_and_self_matchMethod · 0.80

Tested by

no test coverage detected