22#ifndef Rcpp__sugar__unary_minus_h
23#define Rcpp__sugar__unary_minus_h
40 template <
int RTYPE,
bool NA>
61 inline Rcomplex
apply( Rcomplex x )
const {
73 inline Rcomplex
apply( Rcomplex x )
const {
82 template <
int RTYPE,
bool NA,
typename T>
84 unary_minus_result_type<RTYPE>::value ,
86 UnaryMinus_Vector< unary_minus_result_type<RTYPE>::value ,NA,T>
98 return op.apply(
lhs[i] ) ;
101 inline R_xlen_t
size()
const {
return lhs.size() ; }
111template <
int RTYPE,
bool NA,
typename T>
RESULT operator[](R_xlen_t i) const
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
unary_minus_result_type< RTYPE >::type RESULT
unary_minus< RTYPE, NA > OPERATOR
UnaryMinus_Vector(const VEC_TYPE &lhs_)
traits::storage_type< RTYPE >::type STORAGE
Rcomplex apply(Rcomplex x) const
Rcomplex apply(Rcomplex x) const
Rcpp::traits::storage_type< RTYPE >::type STORAGE
unary_minus_result_type< RTYPE >::type RESULT
RESULT apply(STORAGE x) const
RESULT apply(STORAGE x) const
unary_minus_result_type< RTYPE >::type RESULT
traits::storage_type< RTYPE >::type STORAGE
bool is_na(typename storage_type< RTYPE >::type)
traits::storage_type< INTSXP >::type type
traits::storage_type< RTYPE >::type type
Rcpp::sugar::UnaryMinus_Vector< RTYPE, NA, T > operator-(const Rcpp::VectorBase< RTYPE, NA, T > &x)