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

Function clamp

inst/include/Rcpp/sugar/functions/clamp.h:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82template <int RTYPE, bool NA, typename T>
83inline sugar::Clamp_Primitive_Vector_Primitive<RTYPE,NA,T>
84clamp(
85 typename Rcpp::traits::storage_type<RTYPE>::type lhs,
86 const Rcpp::VectorBase<RTYPE,NA,T>& vec,
87 typename Rcpp::traits::storage_type<RTYPE>::type rhs
88 ){
89 return sugar::Clamp_Primitive_Vector_Primitive<RTYPE,NA,T>( lhs, vec.get_ref(), rhs ) ;
90}
91
92
93} // Rcpp

Callers 1

runit_clampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected