#include <RcppMatrix.h>
Public Member Functions | |
RcppMatrix (SEXP mat) | |
RcppMatrix (int nx, int ny) | |
int | getDim1 () const |
int | getDim2 () const |
int | rows () const |
int | cols () const |
T & | operator() (int i, int j) const |
T ** | cMatrix () |
std::vector< std::vector< T > > | stlMatrix () |
Private Attributes | |
int | dim1 |
int | dim2 |
T ** | a |
Definition at line 29 of file RcppMatrix.h.
RcppMatrix< T >::RcppMatrix | ( | SEXP | mat | ) | [inline] |
Definition at line 26 of file RcppMatrix.cpp.
References RcppMatrix< T >::a, RcppMatrix< T >::dim1, and RcppMatrix< T >::dim2.
RcppMatrix< T >::RcppMatrix | ( | int | nx, | |
int | ny | |||
) | [inline] |
Definition at line 57 of file RcppMatrix.cpp.
References RcppMatrix< T >::a, RcppMatrix< T >::dim1, and RcppMatrix< T >::dim2.
T ** RcppMatrix< T >::cMatrix | ( | ) | [inline] |
Definition at line 97 of file RcppMatrix.cpp.
References RcppMatrix< T >::a, RcppMatrix< T >::dim1, and RcppMatrix< T >::dim2.
Referenced by RcppResultSet::add(), and Rcpp_Example().
int RcppMatrix< T >::cols | ( | ) | const [inline] |
Definition at line 82 of file RcppMatrix.cpp.
References RcppMatrix< T >::dim2.
int RcppMatrix< T >::getDim1 | ( | ) | const [inline] |
Definition at line 70 of file RcppMatrix.cpp.
References RcppMatrix< T >::dim1.
Referenced by RcppResultSet::add(), and Rcpp_Example().
int RcppMatrix< T >::getDim2 | ( | ) | const [inline] |
Definition at line 74 of file RcppMatrix.cpp.
References RcppMatrix< T >::dim2.
Referenced by RcppResultSet::add(), and Rcpp_Example().
T & RcppMatrix< T >::operator() | ( | int | i, | |
int | j | |||
) | const [inline] |
Definition at line 87 of file RcppMatrix.cpp.
References RcppMatrix< T >::a, RcppMatrix< T >::dim1, and RcppMatrix< T >::dim2.
int RcppMatrix< T >::rows | ( | ) | const [inline] |
Definition at line 78 of file RcppMatrix.cpp.
References RcppMatrix< T >::dim1.
std::vector< std::vector< T > > RcppMatrix< T >::stlMatrix | ( | ) | [inline] |
Definition at line 110 of file RcppMatrix.cpp.
References RcppMatrix< T >::a, RcppMatrix< T >::dim1, and RcppMatrix< T >::dim2.
Referenced by Rcpp_Example().
T** RcppMatrix< T >::a [private] |
Definition at line 42 of file RcppMatrix.h.
Referenced by RcppMatrix< T >::cMatrix(), RcppMatrix< T >::operator()(), RcppMatrix< T >::RcppMatrix(), and RcppMatrix< T >::stlMatrix().
int RcppMatrix< T >::dim1 [private] |
Definition at line 41 of file RcppMatrix.h.
Referenced by RcppMatrix< T >::cMatrix(), RcppMatrix< T >::getDim1(), RcppMatrix< T >::operator()(), RcppMatrix< T >::RcppMatrix(), RcppMatrix< T >::rows(), and RcppMatrix< T >::stlMatrix().
int RcppMatrix< T >::dim2 [private] |
Definition at line 41 of file RcppMatrix.h.
Referenced by RcppMatrix< T >::cMatrix(), RcppMatrix< T >::cols(), RcppMatrix< T >::getDim2(), RcppMatrix< T >::operator()(), RcppMatrix< T >::RcppMatrix(), and RcppMatrix< T >::stlMatrix().