Rcpp Version 0.12.14
Rcpp::sugar::UpperTri< RTYPE, NA, T > Class Template Reference

#include <upper_tri.h>

Inheritance diagram for Rcpp::sugar::UpperTri< RTYPE, NA, T >:
Collaboration diagram for Rcpp::sugar::UpperTri< RTYPE, NA, T >:

Public Types

typedef Rcpp::MatrixBase< RTYPE, NA, T > MatBase
 
- Public Types inherited from Rcpp::MatrixBase< LGLSXP, false, UpperTri< RTYPE, NA, T > >
typedef traits::storage_type< RTYPE >::type stored_type
 

Public Member Functions

 UpperTri (const T &lhs, bool diag)
 
int operator() (int i, int j) const
 
R_xlen_t size () const
 
int nrow () const
 
int ncol () const
 
- Public Member Functions inherited from Rcpp::MatrixBase< LGLSXP, false, UpperTri< RTYPE, NA, T > >
UpperTri< RTYPE, NA, T > & 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
 

Private Types

typedef bool(UpperTri::* Method) (int, int) const
 

Private Member Functions

bool get_diag_true (int i, int j) const
 
bool get_diag_false (int i, int j) const
 
bool get (int i, int j) const
 

Private Attributes

int nr
 
int nc
 
Method getter
 

Additional Inherited Members

- Static Public Member Functions inherited from Rcpp::MatrixBase< LGLSXP, false, UpperTri< RTYPE, NA, T > >
static UpperTri< RTYPE, NA, T > eye (int n)
 
static UpperTri< RTYPE, NA, T > ones (int n)
 
static UpperTri< RTYPE, NA, T > zeros (int n)
 

Detailed Description

template<int RTYPE, bool NA, typename T>
class Rcpp::sugar::UpperTri< RTYPE, NA, T >

Definition at line 30 of file upper_tri.h.

Member Typedef Documentation

◆ MatBase

template<int RTYPE, bool NA, typename T>
typedef Rcpp::MatrixBase<RTYPE, NA, T> Rcpp::sugar::UpperTri< RTYPE, NA, T >::MatBase

Definition at line 32 of file upper_tri.h.

◆ Method

template<int RTYPE, bool NA, typename T>
typedef bool(UpperTri::* Rcpp::sugar::UpperTri< RTYPE, NA, T >::Method) (int, int) const
private

Definition at line 47 of file upper_tri.h.

Constructor & Destructor Documentation

◆ UpperTri()

template<int RTYPE, bool NA, typename T>
Rcpp::sugar::UpperTri< RTYPE, NA, T >::UpperTri ( const T &  lhs,
bool  diag 
)
inline

Definition at line 34 of file upper_tri.h.

Member Function Documentation

◆ get()

template<int RTYPE, bool NA, typename T>
bool Rcpp::sugar::UpperTri< RTYPE, NA, T >::get ( int  i,
int  j 
) const
inlineprivate

Definition at line 56 of file upper_tri.h.

◆ get_diag_false()

template<int RTYPE, bool NA, typename T>
bool Rcpp::sugar::UpperTri< RTYPE, NA, T >::get_diag_false ( int  i,
int  j 
) const
inlineprivate

Definition at line 54 of file upper_tri.h.

◆ get_diag_true()

template<int RTYPE, bool NA, typename T>
bool Rcpp::sugar::UpperTri< RTYPE, NA, T >::get_diag_true ( int  i,
int  j 
) const
inlineprivate

Definition at line 52 of file upper_tri.h.

◆ ncol()

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::UpperTri< RTYPE, NA, T >::ncol ( ) const
inline

Definition at line 44 of file upper_tri.h.

References Rcpp::sugar::UpperTri< RTYPE, NA, T >::nc.

◆ nrow()

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::UpperTri< RTYPE, NA, T >::nrow ( ) const
inline

Definition at line 43 of file upper_tri.h.

References Rcpp::sugar::UpperTri< RTYPE, NA, T >::nr.

◆ operator()()

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::UpperTri< RTYPE, NA, T >::operator() ( int  i,
int  j 
) const
inline

Definition at line 40 of file upper_tri.h.

◆ size()

template<int RTYPE, bool NA, typename T>
R_xlen_t Rcpp::sugar::UpperTri< RTYPE, NA, T >::size ( ) const
inline

Member Data Documentation

◆ getter

template<int RTYPE, bool NA, typename T>
Method Rcpp::sugar::UpperTri< RTYPE, NA, T >::getter
private

Definition at line 50 of file upper_tri.h.

◆ nc

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::UpperTri< RTYPE, NA, T >::nc
private

◆ nr

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::UpperTri< RTYPE, NA, T >::nr
private

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