Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function > Class Template Reference

#include <outer.h>

Inheritance diagram for Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >:
Collaboration diagram for Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >:

Public Types

typedef ::Rcpp::traits::result_of< Function, LHS_T, RHS_T >::type result_type
typedef Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > LHS_TYPE
typedef Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > RHS_TYPE
typedef Rcpp::internal::LazyVector< LHS_TYPELHS_LAZY
typedef Rcpp::internal::LazyVector< RHS_TYPERHS_LAZY
typedef Rcpp::traits::r_vector_element_converter< RESULT_R_TYPE >::type converter_type
typedef Rcpp::traits::storage_type< RESULT_R_TYPE >::type STORAGE
Public Types inherited from Rcpp::MatrixBase< Rcpp::traits::r_sexptype_traits< ::Rcpp::traits::result_of< Function, LHS_T, RHS_T >::type >::rtype, true, Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function > >
typedef traits::storage_type< RTYPE >::type stored_type

Public Member Functions

 Outer (const LHS_TYPE &lhs_, const RHS_TYPE &rhs_, Function fun_)
STORAGE operator() (int i, int j) const
R_xlen_t size () const
int nrow () const
int ncol () const
Public Member Functions inherited from Rcpp::MatrixBase< Rcpp::traits::r_sexptype_traits< ::Rcpp::traits::result_of< Function, LHS_T, RHS_T >::type >::rtype, true, Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function > >
Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function > & get_ref ()
stored_type operator() (int i, int j) const
R_xlen_t size () const
R_xlen_t nrow () const
R_xlen_t ncol () const
iterator begin () const
iterator end () const

Static Public Attributes

static const int RESULT_R_TYPE

Private Attributes

LHS_LAZY lhs
RHS_LAZY rhs
Function fun
int nr
int nc

Additional Inherited Members

Static Public Member Functions inherited from Rcpp::MatrixBase< Rcpp::traits::r_sexptype_traits< ::Rcpp::traits::result_of< Function, LHS_T, RHS_T >::type >::rtype, true, Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function > >
static Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Functioneye (int n)
static Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Functionones (int n)
static Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Functionzeros (int n)

Detailed Description

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
class Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >

Definition at line 33 of file outer.h.

Member Typedef Documentation

◆ converter_type

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
typedef Rcpp::traits::r_vector_element_converter<RESULT_R_TYPE>::type Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::converter_type

Definition at line 51 of file outer.h.

◆ LHS_LAZY

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
typedef Rcpp::internal::LazyVector<LHS_TYPE> Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::LHS_LAZY

Definition at line 48 of file outer.h.

◆ LHS_TYPE

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
typedef Rcpp::VectorBase<RTYPE,LHS_NA,LHS_T> Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::LHS_TYPE

Definition at line 45 of file outer.h.

◆ result_type

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
typedef ::Rcpp::traits::result_of<Function,LHS_T,RHS_T>::type Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::result_type

Definition at line 41 of file outer.h.

◆ RHS_LAZY

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
typedef Rcpp::internal::LazyVector<RHS_TYPE> Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::RHS_LAZY

Definition at line 49 of file outer.h.

◆ RHS_TYPE

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
typedef Rcpp::VectorBase<RTYPE,RHS_NA,RHS_T> Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::RHS_TYPE

Definition at line 46 of file outer.h.

◆ STORAGE

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
typedef Rcpp::traits::storage_type<RESULT_R_TYPE>::type Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::STORAGE

Definition at line 52 of file outer.h.

Constructor & Destructor Documentation

◆ Outer()

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::Outer ( const LHS_TYPE & lhs_,
const RHS_TYPE & rhs_,
Function fun_ )
inline

Definition at line 54 of file outer.h.

References fun, lhs, nc, nr, rhs, and size().

Here is the call graph for this function:

Member Function Documentation

◆ ncol()

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
int Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::ncol ( ) const
inline

Definition at line 63 of file outer.h.

References nc.

◆ nrow()

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
int Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::nrow ( ) const
inline

Definition at line 62 of file outer.h.

References nr.

◆ operator()()

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
STORAGE Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::operator() ( int i,
int j ) const
inline

Definition at line 57 of file outer.h.

References fun, Rcpp::internal::element_converter< RTYPE >::get(), lhs, and rhs.

Here is the call graph for this function:

◆ size()

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
R_xlen_t Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::size ( ) const
inline

Definition at line 61 of file outer.h.

References nc, and nr.

Referenced by Outer().

Member Data Documentation

◆ fun

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
Function Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::fun
private

Definition at line 70 of file outer.h.

Referenced by operator()(), and Outer().

◆ lhs

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
LHS_LAZY Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::lhs
private

Definition at line 67 of file outer.h.

Referenced by operator()(), and Outer().

◆ nc

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
int Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::nc
private

Definition at line 71 of file outer.h.

Referenced by ncol(), Outer(), and size().

◆ nr

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
int Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::nr
private

Definition at line 71 of file outer.h.

Referenced by nrow(), Outer(), and size().

◆ RESULT_R_TYPE

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
const int Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::RESULT_R_TYPE
static

◆ rhs

template<int RTYPE, bool LHS_NA, typename LHS_T, bool RHS_NA, typename RHS_T, typename Function>
RHS_LAZY Rcpp::sugar::Outer< RTYPE, LHS_NA, LHS_T, RHS_NA, RHS_T, Function >::rhs
private

Definition at line 68 of file outer.h.

Referenced by operator()(), and Outer().


The documentation for this class was generated from the following file:
  • inst/include/Rcpp/sugar/matrix/outer.h