Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::LowerTri< RTYPE, NA, T > Class Template Reference

#include <lower_tri.h>

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

Public Types

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

Public Member Functions

 LowerTri (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, LowerTri< RTYPE, NA, T > >
LowerTri< 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(LowerTri::* 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, LowerTri< RTYPE, NA, T > >
static LowerTri< RTYPE, NA, T > eye (int n)
static LowerTri< RTYPE, NA, T > ones (int n)
static LowerTri< RTYPE, NA, T > zeros (int n)

Detailed Description

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

Definition at line 30 of file lower_tri.h.

Member Typedef Documentation

◆ MatBase

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

Definition at line 32 of file lower_tri.h.

◆ Method

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

Definition at line 47 of file lower_tri.h.

Constructor & Destructor Documentation

◆ LowerTri()

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

Definition at line 34 of file lower_tri.h.

References Rcpp::diag(), get_diag_false(), get_diag_true(), getter, LowerTri(), nc, ncol(), nr, and nrow().

Referenced by LowerTri().

Here is the call graph for this function:

Member Function Documentation

◆ get()

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

Definition at line 56 of file lower_tri.h.

Referenced by operator()().

◆ get_diag_false()

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

Definition at line 54 of file lower_tri.h.

Referenced by LowerTri().

◆ get_diag_true()

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

Definition at line 52 of file lower_tri.h.

Referenced by LowerTri().

◆ ncol()

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

Definition at line 44 of file lower_tri.h.

References nc.

Referenced by LowerTri().

◆ nrow()

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

Definition at line 43 of file lower_tri.h.

References nr.

Referenced by LowerTri().

◆ operator()()

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

Definition at line 40 of file lower_tri.h.

References get().

Here is the call graph for this function:

◆ size()

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

Definition at line 42 of file lower_tri.h.

References nc, and nr.

Member Data Documentation

◆ getter

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

Definition at line 50 of file lower_tri.h.

Referenced by LowerTri().

◆ nc

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

Definition at line 49 of file lower_tri.h.

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

◆ nr

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

Definition at line 49 of file lower_tri.h.

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


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