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

Function intersect

inst/include/Rcpp/sugar/functions/setdiff.h:172–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171template <int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>
172inline Vector<RTYPE> intersect( const VectorBase<RTYPE,LHS_NA,LHS_T>& lhs, const VectorBase<RTYPE,RHS_NA,RHS_T>& rhs ){
173 return sugar::Intersect<RTYPE,LHS_NA,LHS_T,RHS_NA,RHS_T>( lhs.get_ref(), rhs.get_ref() ).get() ;
174}
175
176// we cannot use "union" because it is a keyword
177template <int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T>

Callers 1

runit_intersectFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected