|
Rcpp Version 0.10.3
|
#include <Matrix.h>


Classes | |
| struct | can_have_na |
| struct | r_type |
Public Member Functions | |
| Matrix () | |
| Matrix (SEXP x) | |
| Matrix (const int &n) | |
| Matrix (const Dimension &dims) | |
| Matrix (const int &nrows_, const int &ncols) | |
| template<typename Iterator > | |
| Matrix (const int &nrows_, const int &ncols, Iterator start) | |
| Matrix (const Matrix &other) | |
| template<bool NA, typename MAT > | |
| Matrix (const MatrixBase< RTYPE, NA, MAT > &other) | |
| Matrix (const SubMatrix< RTYPE > &) | |
| Matrix & | operator= (const Matrix &other) |
| Matrix & | operator= (const SubMatrix< RTYPE > &) |
| int | ncol () const |
| int | nrow () const |
| int | cols () const |
| int | rows () const |
| Row | row (int i) |
| Column | column (int i) |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | begin () |
| iterator | end () |
| template<typename U > | |
| void | fill_diag (const U &u) |
| Proxy | operator[] (int i) |
| const_Proxy | operator[] (int i) const |
| Proxy | operator() (const size_t &i, const size_t &j) |
| const_Proxy | operator() (const size_t &i, const size_t &j) const |
| Row | operator() (int i, internal::NamedPlaceHolder) |
| Column | operator() (internal::NamedPlaceHolder, int i) |
| Column | operator() (internal::NamedPlaceHolder, int i) const |
| Sub | operator() (const Range &row_range, const Range &col_range) |
| Sub | operator() (internal::NamedPlaceHolder, const Range &col_range) |
| Sub | operator() (const Range &row_range, internal::NamedPlaceHolder) |
Public Member Functions inherited from Vector< RTYPE > | |
| Vector () | |
| ~Vector () | |
| Vector (const Vector &other) | |
| Vector (SEXP x) | |
| Vector (const RObject::SlotProxy &proxy) | |
| Vector (const RObject::AttributeProxy &proxy) | |
| Vector (const int &size, const stored_type &u) | |
| Vector (const std::string &st) | |
| Vector (const int &siz, stored_type(*gen)(void)) | |
| Vector (const int &size) | |
| Vector (const Dimension &dims) | |
| template<typename U > | |
| Vector (const Dimension &dims, const U &u) | |
| template<bool NA, typename VEC > | |
| Vector (const VectorBase< RTYPE, NA, VEC > &other) | |
| template<typename U > | |
| Vector (const int &size, const U &u) | |
| template<bool NA, typename T > | |
| Vector (const sugar::SingleLogicalResult< NA, T > &obj) | |
| template<typename U1 > | |
| Vector (const int &siz, stored_type(*gen)(U1), const U1 &u1) | |
| template<typename U1 , typename U2 > | |
| Vector (const int &siz, stored_type(*gen)(U1, U2), const U1 &u1, const U2 &u2) | |
| template<typename U1 , typename U2 , typename U3 > | |
| Vector (const int &siz, stored_type(*gen)(U1, U2, U3), const U1 &u1, const U2 &u2, const U3 &u3) | |
| template<typename InputIterator > | |
| Vector (InputIterator first, InputIterator last) | |
| template<typename InputIterator > | |
| Vector (InputIterator first, InputIterator last, int n) | |
| template<typename InputIterator , typename Func > | |
| Vector (InputIterator first, InputIterator last, Func func) | |
| template<typename InputIterator , typename Func > | |
| Vector (InputIterator first, InputIterator last, Func func, int n) | |
| Vector & | operator= (const Vector &other) |
| template<typename T > | |
| Vector & | operator= (const T &x) |
| internal::ListInitialization < iterator, init_type > | operator= (init_type x) |
| R_len_t | length () const |
| R_len_t | size () const |
| size_t | offset (const size_t &i, const size_t &j) const |
| size_t | offset (const size_t &i) const |
| R_len_t | offset (const std::string &name) const |
| template<typename U > | |
| void | fill (const U &u) |
| NamesProxy | names () const |
| Proxy | operator() (const size_t &i) |
| const_Proxy | operator() (const size_t &i) const |
| NameProxy | operator[] (const std::string &name) |
| NameProxy | operator() (const std::string &name) |
| NameProxy | operator[] (const std::string &name) const |
| NameProxy | operator() (const std::string &name) const |
| Vector & | sort () |
| template<typename InputIterator > | |
| void | assign (InputIterator first, InputIterator last) |
| template<typename T > | |
| void | push_back (const T &object) |
| template<typename T > | |
| void | push_back (const T &object, const std::string &name) |
| template<typename T > | |
| void | push_front (const T &object) |
| template<typename T > | |
| void | push_front (const T &object, const std::string &name) |
| template<typename T > | |
| iterator | insert (iterator position, const T &object) |
| template<typename T > | |
| iterator | insert (int position, const T &object) |
| iterator | erase (int position) |
| iterator | erase (iterator position) |
| iterator | erase (int first, int last) |
| iterator | erase (iterator first, iterator last) |
| void | update_vector () |
| void | set_sexp (SEXP x) |
| Indexer | operator[] (const Range &range) |
| template<typename EXPR_VEC > | |
| Vector & | operator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs) |
| template<typename EXPR_VEC > | |
| Vector & | operator+= (const VectorBase< RTYPE, false, EXPR_VEC > &rhs) |
| bool | containsElementNamed (const char *target) const |
| template<> | |
| Vector (const sugar::SingleLogicalResult< NA, T > &obj) | |
| template<> | |
| Vector< REALSXP > & | operator+= (const VectorBase< REALSXP, false, EXPR_VEC > &rhs) |
| template<> | |
| Vector< REALSXP > & | operator+= (const VectorBase< REALSXP, true, EXPR_VEC > &rhs) |
Static Public Member Functions | |
| template<typename U > | |
| static Matrix | diag (int size, const U &diag_value) |
Static Public Member Functions inherited from Vector< RTYPE > | |
| static stored_type | get_na () |
| static bool | is_na (stored_type x) |
| template<typename InputIterator > | |
| static Vector | import (InputIterator first, InputIterator last) |
| template<typename InputIterator , typename F > | |
| static Vector | import_transform (InputIterator first, InputIterator last, F f) |
| template<typename U > | |
| static void | replace_element (iterator it, SEXP names, int index, const U &u) |
| template<typename U > | |
| static void | replace_element__dispatch (traits::false_type, iterator it, SEXP names, int index, const U &u) |
| template<typename U > | |
| static void | replace_element__dispatch (traits::true_type, iterator it, SEXP names, int index, const U &u) |
| template<typename U > | |
| static void | replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, int index, const U &u) |
| template<typename U > | |
| static void | replace_element__dispatch__isArgument (traits::true_type, iterator it, SEXP names, int index, const U &u) |
| static Vector | create () |
Private Member Functions | |
| int | offset (int i, int j) const |
| void | update_matrix () |
| template<typename U > | |
| void | fill_diag__dispatch (traits::false_type, const U &u) |
| template<typename U > | |
| void | fill_diag__dispatch (traits::true_type, const U &u) |
| template<bool NA, typename MAT > | |
| void | import_matrix_expression (const MatrixBase< RTYPE, NA, MAT > &other, int nr, int nc) |
Private Attributes | |
| int | nrows |
Additional Inherited Members | |
Protected Member Functions inherited from Vector< RTYPE > | |
| int * | dims () const |
| void | init () |
| typedef MatrixColumn<RTYPE> Matrix< RTYPE >::Column |
| typedef VECTOR::const_iterator Matrix< RTYPE >::const_iterator |
| typedef VECTOR::const_Proxy Matrix< RTYPE >::const_Proxy |
| typedef VECTOR::converter_type Matrix< RTYPE >::converter_type |
| typedef VECTOR::iterator Matrix< RTYPE >::iterator |
| typedef VECTOR::Proxy Matrix< RTYPE >::Proxy |
| typedef VECTOR::stored_type Matrix< RTYPE >::stored_type |
Definition at line 31 of file Matrix.h.
References Vector< RTYPE >::init().

| Matrix< RTYPE >::Matrix | ( | const int & | nrows_, |
| const int & | ncols, | ||
| Iterator | start | ||
| ) |
Definition at line 44 of file Matrix.h.
References Matrix< RTYPE >::nrows.
| Matrix< RTYPE >::Matrix | ( | const MatrixBase< RTYPE, NA, MAT > & | other | ) |
Definition at line 59 of file Matrix.h.
References Matrix< RTYPE >::ncol(), and Matrix< RTYPE >::nrows.

Definition at line 57 of file SubMatrix.h.
References Vector< RTYPE >::begin(), SubMatrix< RTYPE >::column_iterator(), i, j, SubMatrix< RTYPE >::ncol(), and Matrix< RTYPE >::nrows.

|
inline |
Reimplemented from Vector< RTYPE >.
Definition at line 83 of file Matrix.h.
References Vector< RTYPE >::begin().
Referenced by fastLm().

Reimplemented from Vector< RTYPE >.
Definition at line 85 of file Matrix.h.
References Vector< RTYPE >::begin().

|
inline |
Definition at line 73 of file Matrix.h.
References Vector< RTYPE >::dims().

|
static |
Definition at line 80 of file Matrix.h.
References Matrix< RTYPE >::fill_diag().

|
inline |
Reimplemented from Vector< RTYPE >.
Definition at line 84 of file Matrix.h.
References Vector< RTYPE >::end().

Reimplemented from Vector< RTYPE >.
Definition at line 86 of file Matrix.h.
References Vector< RTYPE >::end().

Definition at line 74 of file Matrix.h.
Referenced by Matrix< RTYPE >::diag().
|
private |
|
private |
Definition at line 151 of file Matrix.h.
References i, n, and Matrix< RTYPE >::ncol().

|
private |
|
inline |
Definition at line 67 of file Matrix.h.
References Vector< RTYPE >::dims().
Referenced by fastLm(), Matrix< RTYPE >::fill_diag__dispatch(), Matrix< RTYPE >::Matrix(), MatrixColumn< RTYPE >::MatrixColumn(), and MatrixRow< RTYPE >::size().

|
inline |
Definition at line 70 of file Matrix.h.
References Matrix< RTYPE >::nrows.
Referenced by fastLm(), and MatrixRow< RTYPE >::MatrixRow().
|
inlineprivate |
Definition at line 108 of file Matrix.h.
References j, and Matrix< RTYPE >::nrows.
|
inline |
Reimplemented from Vector< RTYPE >.
|
inline |
Reimplemented from Vector< RTYPE >.
Definition at line 64 of file Matrix.h.
References Matrix< RTYPE >::nrows, and x.
Definition at line 70 of file SubMatrix.h.
References SubMatrix< RTYPE >::column_iterator(), i, j, SubMatrix< RTYPE >::ncol(), and SubMatrix< RTYPE >::nrow().

Reimplemented from Vector< RTYPE >.
|
inline |
Reimplemented from Vector< RTYPE >.
|
inline |
Definition at line 76 of file Matrix.h.
References Matrix< RTYPE >::nrows.
|
inlineprivate |
Definition at line 110 of file Matrix.h.
References DEMANGLE, RCPP_DEBUG_1, and Vector< RTYPE >::update_vector().

|
private |
Definition at line 29 of file Matrix.h.
Referenced by Matrix< RTYPE >::Matrix(), Matrix< RTYPE >::nrow(), Matrix< RTYPE >::offset(), Matrix< RTYPE >::operator=(), and Matrix< RTYPE >::rows().