Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::Vectorized< Func, NA, VEC > Class Template Reference

#include <Vectorized_Math.h>

Inheritance diagram for Rcpp::sugar::Vectorized< Func, NA, VEC >:
Collaboration diagram for Rcpp::sugar::Vectorized< Func, NA, VEC >:

Public Types

typedef Rcpp::VectorBase< REALSXP, NA, VEC > VEC_TYPE
typedef Rcpp::traits::Extractor< REALSXP, NA, VEC >::type VEC_EXT
Public Types inherited from Rcpp::VectorBase< REALSXP, NA, Vectorized< Func, NA, VEC > >
typedef traits::storage_type< RTYPE >::type stored_type
typedef traits::storage_type< RTYPE >::type elem_type
typedef iter_base< iter_traits > iterator
typedef iter_base< const_iter_traits > const_iterator

Public Member Functions

 Vectorized (const VEC_TYPE &object_)
double operator[] (R_xlen_t i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< REALSXP, NA, Vectorized< Func, NA, VEC > >
Vectorized< Func, NA, VEC > & get_ref ()
stored_type operator[] (R_xlen_t i) const
R_xlen_t size () const
const_iterator begin () const
const_iterator end () const
const_iterator cbegin () const
const_iterator cend () const

Private Attributes

const VEC_EXTobject

Detailed Description

template<DDFun Func, bool NA, typename VEC>
class Rcpp::sugar::Vectorized< Func, NA, VEC >

Definition at line 31 of file Vectorized_Math.h.

Member Typedef Documentation

◆ VEC_EXT

template<DDFun Func, bool NA, typename VEC>
typedef Rcpp::traits::Extractor<REALSXP,NA,VEC>::type Rcpp::sugar::Vectorized< Func, NA, VEC >::VEC_EXT

Definition at line 34 of file Vectorized_Math.h.

◆ VEC_TYPE

template<DDFun Func, bool NA, typename VEC>
typedef Rcpp::VectorBase<REALSXP,NA,VEC> Rcpp::sugar::Vectorized< Func, NA, VEC >::VEC_TYPE

Definition at line 33 of file Vectorized_Math.h.

Constructor & Destructor Documentation

◆ Vectorized()

template<DDFun Func, bool NA, typename VEC>
Rcpp::sugar::Vectorized< Func, NA, VEC >::Vectorized ( const VEC_TYPE & object_)
inline

Definition at line 36 of file Vectorized_Math.h.

References Rcpp::VectorBase< REALSXP, NA, Vectorized< Func, NA, VEC > >::get_ref(), and object.

Here is the call graph for this function:

Member Function Documentation

◆ operator[]()

template<DDFun Func, bool NA, typename VEC>
double Rcpp::sugar::Vectorized< Func, NA, VEC >::operator[] ( R_xlen_t i) const
inline

Definition at line 37 of file Vectorized_Math.h.

◆ size()

template<DDFun Func, bool NA, typename VEC>
R_xlen_t Rcpp::sugar::Vectorized< Func, NA, VEC >::size ( ) const
inline

Definition at line 40 of file Vectorized_Math.h.

Member Data Documentation

◆ object

template<DDFun Func, bool NA, typename VEC>
const VEC_EXT& Rcpp::sugar::Vectorized< Func, NA, VEC >::object
private

Definition at line 43 of file Vectorized_Math.h.

Referenced by Vectorized().


The documentation for this class was generated from the following file: