Rcpp Version 1.0.9
Rcpp::MatrixBase< RTYPE, na, MATRIX > Class Template Reference

#include <MatrixBase.h>

Inheritance diagram for Rcpp::MatrixBase< RTYPE, na, MATRIX >:
Collaboration diagram for Rcpp::MatrixBase< RTYPE, na, MATRIX >:

Classes

struct  can_have_na
 
class  iterator
 
struct  r_matrix_interface
 
struct  r_type
 

Public Types

typedef traits::storage_type< RTYPE >::type stored_type
 

Public Member Functions

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
 

Static Public Member Functions

static MATRIX eye (int n)
 
static MATRIX ones (int n)
 
static MATRIX zeros (int n)
 

Detailed Description

template<int RTYPE, bool na, typename MATRIX>
class Rcpp::MatrixBase< RTYPE, na, MATRIX >

a base class for vectors, modelled after the CRTP

Definition at line 32 of file MatrixBase.h.

Member Typedef Documentation

◆ stored_type

template<int RTYPE, bool na, typename MATRIX >
typedef traits::storage_type<RTYPE>::type Rcpp::MatrixBase< RTYPE, na, MATRIX >::stored_type

Definition at line 37 of file MatrixBase.h.

Member Function Documentation

◆ begin()

template<int RTYPE, bool na, typename MATRIX >
iterator Rcpp::MatrixBase< RTYPE, na, MATRIX >::begin ( ) const
inline

Definition at line 191 of file MatrixBase.h.

◆ end()

template<int RTYPE, bool na, typename MATRIX >
iterator Rcpp::MatrixBase< RTYPE, na, MATRIX >::end ( ) const
inline

Definition at line 192 of file MatrixBase.h.

References Rcpp::MatrixBase< RTYPE, na, MATRIX >::size().

Here is the call graph for this function:

◆ eye()

template<int RTYPE, bool na, typename MATRIX >
static MATRIX Rcpp::MatrixBase< RTYPE, na, MATRIX >::eye ( int  n)
inlinestatic

Definition at line 51 of file MatrixBase.h.

References Rcpp::diag().

Here is the call graph for this function:

◆ get_ref()

template<int RTYPE, bool na, typename MATRIX >
MATRIX& Rcpp::MatrixBase< RTYPE, na, MATRIX >::get_ref ( )
inline

Definition at line 39 of file MatrixBase.h.

Referenced by Rcpp::internal::as_vector__impl().

◆ ncol()

◆ nrow()

◆ ones()

template<int RTYPE, bool na, typename MATRIX >
static MATRIX Rcpp::MatrixBase< RTYPE, na, MATRIX >::ones ( int  n)
inlinestatic

Definition at line 60 of file MatrixBase.h.

◆ operator()()

template<int RTYPE, bool na, typename MATRIX >
stored_type Rcpp::MatrixBase< RTYPE, na, MATRIX >::operator() ( int  i,
int  j 
) const
inline

Definition at line 43 of file MatrixBase.h.

◆ size()

template<int RTYPE, bool na, typename MATRIX >
R_xlen_t Rcpp::MatrixBase< RTYPE, na, MATRIX >::size ( ) const
inline

Definition at line 47 of file MatrixBase.h.

Referenced by Rcpp::MatrixBase< RTYPE, na, MATRIX >::end().

◆ zeros()

template<int RTYPE, bool na, typename MATRIX >
static MATRIX Rcpp::MatrixBase< RTYPE, na, MATRIX >::zeros ( int  n)
inlinestatic

Definition at line 74 of file MatrixBase.h.


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