Rcpp Version 0.9.10
SubMatrix< RTYPE > Class Template Reference

#include <SubMatrix.h>

Inheritance diagram for SubMatrix< RTYPE >:
Collaboration diagram for SubMatrix< RTYPE >:

List of all members.

Public Types

typedef Matrix< RTYPE > MATRIX
typedef Vector< RTYPE >::iterator vec_iterator
typedef MATRIX::Proxy Proxy

Public Member Functions

 SubMatrix (MATRIX &m_, const Range &row_range_, const Range &col_range_)
int size () const
int ncol () const
int nrow () const
Proxy operator() (int i, int j) const
vec_iterator column_iterator (int j) const

Private Attributes

MATRIXm
vec_iterator iter
int m_nr
int nc
int nr

Detailed Description

template<int RTYPE>
class SubMatrix< RTYPE >

Definition at line 26 of file SubMatrix.h.


Member Typedef Documentation

template<int RTYPE>
typedef Matrix<RTYPE> SubMatrix< RTYPE >::MATRIX

Definition at line 28 of file SubMatrix.h.

template<int RTYPE>
typedef MATRIX::Proxy SubMatrix< RTYPE >::Proxy

Definition at line 30 of file SubMatrix.h.

template<int RTYPE>
typedef Vector<RTYPE>::iterator SubMatrix< RTYPE >::vec_iterator

Definition at line 29 of file SubMatrix.h.


Constructor & Destructor Documentation

template<int RTYPE>
SubMatrix< RTYPE >::SubMatrix ( MATRIX m_,
const Range &  row_range_,
const Range &  col_range_ 
) [inline]

Definition at line 32 of file SubMatrix.h.


Member Function Documentation

template<int RTYPE>
vec_iterator SubMatrix< RTYPE >::column_iterator ( int  j) const [inline]
template<int RTYPE>
int SubMatrix< RTYPE >::ncol ( ) const [inline]
template<int RTYPE>
int SubMatrix< RTYPE >::nrow ( ) const [inline]
template<int RTYPE>
Proxy SubMatrix< RTYPE >::operator() ( int  i,
int  j 
) const [inline]
template<int RTYPE>
int SubMatrix< RTYPE >::size ( ) const [inline]

Reimplemented from Rcpp::MatrixBase< RTYPE, true, SubMatrix< RTYPE > >.

Definition at line 40 of file SubMatrix.h.

References SubMatrix< RTYPE >::ncol(), and SubMatrix< RTYPE >::nrow().

Here is the call graph for this function:


Member Data Documentation

template<int RTYPE>
vec_iterator SubMatrix< RTYPE >::iter [private]
template<int RTYPE>
MATRIX& SubMatrix< RTYPE >::m [private]

Definition at line 51 of file SubMatrix.h.

template<int RTYPE>
int SubMatrix< RTYPE >::m_nr [private]
template<int RTYPE>
int SubMatrix< RTYPE >::nc [private]

Definition at line 53 of file SubMatrix.h.

Referenced by SubMatrix< RTYPE >::ncol().

template<int RTYPE>
int SubMatrix< RTYPE >::nr [private]

Definition at line 53 of file SubMatrix.h.

Referenced by SubMatrix< RTYPE >::nrow().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines