Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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  r_type
struct  r_matrix_interface
struct  can_have_na
class  iterator

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.

◆ eye()

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

Definition at line 51 of file MatrixBase.h.

◆ get_ref()

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

◆ ncol()

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

◆ nrow()

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

◆ ones()

template<int RTYPE, bool na, typename MATRIX>
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, LHS_NA, LHS_T >::end().

◆ zeros()

template<int RTYPE, bool na, typename MATRIX>
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: