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

#include <diag.h>

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

Public Types

typedef Rcpp::MatrixBase< RTYPE, NA, T > MAT_TYPE
typedef Rcpp::traits::storage_type< RTYPE >::type STORAGE
Public Types inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
typedef traits::storage_type< RTYPE >::type stored_type
typedef traits::storage_type< RTYPE >::type elem_type
typedef iter_base< iter_traitsiterator
typedef iter_base< const_iter_traitsconst_iterator

Public Member Functions

 Diag_Extractor (const MAT_TYPE &object_)
STORAGE operator[] (int i) const
R_xlen_t size () const
Public Member Functions inherited from Rcpp::VectorBase< RTYPE, na, VECTOR >
VECTOR & get_ref ()
const VECTOR & get_ref () const
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 MAT_TYPEobject
R_xlen_t n

Detailed Description

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

Definition at line 29 of file diag.h.

Member Typedef Documentation

◆ MAT_TYPE

template<int RTYPE, bool NA, typename T>
typedef Rcpp::MatrixBase<RTYPE,NA,T> Rcpp::sugar::Diag_Extractor< RTYPE, NA, T >::MAT_TYPE

Definition at line 31 of file diag.h.

◆ STORAGE

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

Definition at line 32 of file diag.h.

Constructor & Destructor Documentation

◆ Diag_Extractor()

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

Definition at line 34 of file diag.h.

References n, and object.

Member Function Documentation

◆ operator[]()

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

Definition at line 40 of file diag.h.

References object.

◆ size()

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

Definition at line 43 of file diag.h.

References n.

Member Data Documentation

◆ n

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

Definition at line 47 of file diag.h.

Referenced by Diag_Extractor(), and size().

◆ object

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

Definition at line 46 of file diag.h.

Referenced by Diag_Extractor(), and operator[]().


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