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

#include <diag.h>

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

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
Public Types inherited from Rcpp::MatrixBase< RTYPE, na, MATRIX >
typedef traits::storage_type< RTYPE >::type stored_type

Public Member Functions

 Diag_Maker (const VEC_TYPE &object_)
STORAGE operator() (int i, int j) const
R_xlen_t size () const
int ncol () const
int nrow () const
Public Member Functions inherited from Rcpp::MatrixBase< RTYPE, na, MATRIX >
MATRIX & 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 Attributes

const VEC_TYPEobject
int n

Additional Inherited Members

Static Public Member Functions inherited from Rcpp::MatrixBase< RTYPE, na, MATRIX >
static MATRIX eye (int n)
static MATRIX ones (int n)
static MATRIX zeros (int n)

Detailed Description

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

Definition at line 52 of file diag.h.

Member Typedef Documentation

◆ STORAGE

template<int RTYPE, bool NA, typename T>
typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::Diag_Maker< RTYPE, NA, T >::STORAGE

Definition at line 55 of file diag.h.

◆ VEC_TYPE

template<int RTYPE, bool NA, typename T>
typedef Rcpp::VectorBase<RTYPE,NA,T> Rcpp::sugar::Diag_Maker< RTYPE, NA, T >::VEC_TYPE

Definition at line 54 of file diag.h.

Constructor & Destructor Documentation

◆ Diag_Maker()

template<int RTYPE, bool NA, typename T>
Rcpp::sugar::Diag_Maker< RTYPE, NA, T >::Diag_Maker ( const VEC_TYPE & object_)
inline

Definition at line 57 of file diag.h.

References n, object, and size().

Here is the call graph for this function:

Member Function Documentation

◆ ncol()

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

Definition at line 63 of file diag.h.

References n.

◆ nrow()

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

Definition at line 64 of file diag.h.

References n.

◆ operator()()

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

Definition at line 59 of file diag.h.

◆ size()

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

Definition at line 62 of file diag.h.

References n.

Referenced by Diag_Maker().

Member Data Documentation

◆ n

template<int RTYPE, bool NA, typename T>
int Rcpp::sugar::Diag_Maker< RTYPE, NA, T >::n
private

Definition at line 68 of file diag.h.

Referenced by Diag_Maker(), ncol(), nrow(), and size().

◆ object

template<int RTYPE, bool NA, typename T>
const VEC_TYPE& Rcpp::sugar::Diag_Maker< RTYPE, NA, T >::object
private

Definition at line 67 of file diag.h.

Referenced by Diag_Maker().


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