Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T > Class Template Reference

#include <row.h>

Inheritance diagram for Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >:
Collaboration diagram for Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >:

Public Types

typedef Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > LHS_TYPE
Public Types inherited from Rcpp::MatrixBase< INTSXP, false, Row< RTYPE, LHS_NA, LHS_T > >
typedef traits::storage_type< RTYPE >::type stored_type

Public Member Functions

 Row (const LHS_TYPE &lhs)
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< INTSXP, false, Row< RTYPE, LHS_NA, LHS_T > >
Row< RTYPE, LHS_NA, LHS_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 Attributes

int nr
int nc

Additional Inherited Members

Static Public Member Functions inherited from Rcpp::MatrixBase< INTSXP, false, Row< RTYPE, LHS_NA, LHS_T > >
static Row< RTYPE, LHS_NA, LHS_T > eye (int n)
static Row< RTYPE, LHS_NA, LHS_T > ones (int n)
static Row< RTYPE, LHS_NA, LHS_T > zeros (int n)

Detailed Description

template<int RTYPE, bool LHS_NA, typename LHS_T>
class Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >

Definition at line 29 of file row.h.

Member Typedef Documentation

◆ LHS_TYPE

template<int RTYPE, bool LHS_NA, typename LHS_T>
typedef Rcpp::MatrixBase<RTYPE,LHS_NA,LHS_T> Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::LHS_TYPE

Definition at line 35 of file row.h.

Constructor & Destructor Documentation

◆ Row()

template<int RTYPE, bool LHS_NA, typename LHS_T>
Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::Row ( const LHS_TYPE & lhs)
inline

Definition at line 37 of file row.h.

References nc, ncol(), nr, and nrow().

Here is the call graph for this function:

Member Function Documentation

◆ ncol()

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::ncol ( ) const
inline

Definition at line 45 of file row.h.

References nc.

Referenced by Row().

◆ nrow()

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::nrow ( ) const
inline

Definition at line 44 of file row.h.

References nr.

Referenced by Row().

◆ operator()()

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::operator() ( int i,
int j ) const
inline

Definition at line 39 of file row.h.

◆ size()

template<int RTYPE, bool LHS_NA, typename LHS_T>
R_xlen_t Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::size ( ) const
inline

Definition at line 43 of file row.h.

References nc, and nr.

Member Data Documentation

◆ nc

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::nc
private

Definition at line 48 of file row.h.

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

◆ nr

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::Row< RTYPE, LHS_NA, LHS_T >::nr
private

Definition at line 48 of file row.h.

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


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