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


Classes | |
| struct | r_type |
| struct | can_have_na |
Public Member Functions | |
| Matrix () | |
| Matrix (SEXP x) | |
| 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 int &n) | |
| 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 > &) |
| Matrix (const no_init_matrix &obj) | |
| int | ncol () const |
| int | nrow () const |
| int | cols () const |
| int | rows () const |
| Row | row (int i) |
| ConstRow | row (int i) const |
| Column | column (int i) |
| ConstColumn | column (int i) const |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| iterator | begin () |
| iterator | end () |
| template<typename U> | |
| void | fill_diag (const U &u) |
| Proxy | operator[] (R_xlen_t i) |
| const_Proxy | operator[] (R_xlen_t i) const |
| Proxy | operator() (const size_t &i, const size_t &j) |
| const_Proxy | operator() (const size_t &i, const size_t &j) const |
| Proxy | at (const size_t &i, const size_t &j) |
| const_Proxy | at (const size_t &i, const size_t &j) const |
| Row | operator() (int i, internal::NamedPlaceHolder) |
| ConstRow | operator() (int i, internal::NamedPlaceHolder) const |
| Column | operator() (internal::NamedPlaceHolder, int i) |
| ConstColumn | 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 Rcpp::Vector< RTYPE, PreserveStorage > | |
| Vector () | |
| Vector & | operator= (const Vector &rhs) |
| R_xlen_t | length () const |
| R_xlen_t | size () const |
| R_xlen_t | offset (const int &i, const int &j) const |
| void | fill (const U &u) |
| iterator | begin () |
| iterator | end () |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| Proxy | operator[] (R_xlen_t i) |
| Proxy | operator() (const size_t &i) |
| Proxy | at (const size_t &i) |
| operator RObject () const | |
| Vector & | sort (bool decreasing=false) |
| void | assign (InputIterator first, InputIterator last) |
| void | push_back (const T &object) |
| void | push_front (const T &object) |
| iterator | insert (iterator position, const T &object) |
| iterator | erase (int position) |
| void | update (SEXP) |
| Vector & | operator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs) |
| bool | containsElementNamed (const char *target) const |
| R_xlen_t | findName (const std::string &name) const |
| SEXP | eval () const |
| Public Member Functions inherited from Rcpp::PreserveStorage< Vector< RTYPE, PreserveStorage > > | |
| PreserveStorage () | |
| ~PreserveStorage () | |
| void | set__ (SEXP x) |
| SEXP | get__ () const |
| SEXP | invalidate__ () |
| T & | copy__ (const T &other) |
| bool | inherits (const char *clazz) const |
| operator SEXP () const | |
| Public Member Functions inherited from Rcpp::SlotProxyPolicy< Vector< RTYPE, PreserveStorage > > | |
| SlotProxy | slot (const std::string &name) |
| bool | hasSlot (const std::string &name) const |
| Public Member Functions inherited from Rcpp::AttributeProxyPolicy< Vector< RTYPE, PreserveStorage > > | |
| AttributeProxy | attr (const std::string &name) |
| std::vector< std::string > | attributeNames () const |
| bool | hasAttribute (const std::string &attr) const |
| Public Member Functions inherited from Rcpp::NamesProxyPolicy< Vector< RTYPE, PreserveStorage > > | |
| NamesProxy | names () |
| Public Member Functions inherited from Rcpp::RObjectMethods< Vector< RTYPE, PreserveStorage > > | |
| bool | isNULL () const |
| int | sexp_type () const |
| bool | isObject () const |
| bool | isS4 () const |
| Public Member Functions inherited from Rcpp::VectorBase< RTYPE, true, Vector< RTYPE, PreserveStorage > > | |
| Vector< RTYPE, PreserveStorage > & | get_ref () |
| stored_type | operator[] (R_xlen_t i) const |
| R_xlen_t | size () const |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| Public Member Functions inherited from Rcpp::MatrixBase< RTYPE, true, Matrix< RTYPE, PreserveStorage > > | |
| Matrix< RTYPE, PreserveStorage > & | 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 | |
| template<typename U> | |
| static Matrix | diag (int size, const U &diag_value) |
| Static Public Member Functions inherited from Rcpp::Vector< RTYPE, PreserveStorage > | |
| static stored_type | get_na () |
| static bool | is_na (stored_type x) |
| static Vector | import (InputIterator first, InputIterator last) |
| static Vector | import_transform (InputIterator first, InputIterator last, F f) |
| static void | replace_element (iterator it, SEXP names, R_xlen_t index, const U &u) |
| static void | replace_element__dispatch (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u) |
| static void | replace_element__dispatch__isArgument (traits::false_type, iterator it, SEXP names, R_xlen_t index, const U &u) |
| static Vector | create () |
| Static Public Member Functions inherited from Rcpp::MatrixBase< RTYPE, true, Matrix< RTYPE, PreserveStorage > > | |
| static Matrix< RTYPE, PreserveStorage > | eye (int n) |
| static Matrix< RTYPE, PreserveStorage > | ones (int n) |
| static Matrix< RTYPE, PreserveStorage > | zeros (int n) |
Private Member Functions | |
| R_xlen_t | offset (const int i, const int j) const |
| 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 | |
| Public Attributes inherited from Rcpp::Vector< RTYPE, PreserveStorage > | |
| traits::r_vector_cache_type< RTYPE, PreserveStorage >::type | cache |
| Protected Member Functions inherited from Rcpp::Vector< RTYPE, PreserveStorage > | |
| int * | dims () const |
| void | init () |
| typedef MatrixColumn<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::Column |
| typedef VECTOR::const_iterator Rcpp::Matrix< RTYPE, StoragePolicy >::const_iterator |
| typedef VECTOR::const_Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::const_Proxy |
| typedef ConstMatrixColumn<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::ConstColumn |
| typedef ConstMatrixRow<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::ConstRow |
| typedef VECTOR::converter_type Rcpp::Matrix< RTYPE, StoragePolicy >::converter_type |
| typedef VECTOR::iterator Rcpp::Matrix< RTYPE, StoragePolicy >::iterator |
| typedef VECTOR::Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::Proxy |
| typedef MatrixRow<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::Row |
| typedef StoragePolicy<Matrix> Rcpp::Matrix< RTYPE, StoragePolicy >::Storage |
| typedef VECTOR::stored_type Rcpp::Matrix< RTYPE, StoragePolicy >::stored_type |
| typedef SubMatrix<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::Sub |
| typedef Vector<RTYPE, StoragePolicy> Rcpp::Matrix< RTYPE, StoragePolicy >::VECTOR |
|
inline |
Definition at line 51 of file Matrix.h.
Referenced by operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix | ( | const SubMatrix< RTYPE > & | sub | ) |
Definition at line 58 of file SubMatrix.h.
References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::SubMatrix< RTYPE >::column_iterator(), ncol(), Rcpp::SubMatrix< RTYPE >::ncol(), nrow(), and nrows.

|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Definition at line 120 of file Matrix.h.
Referenced by Rcpp::Matrix< LGLSXP >::diag().
|
inlineprivate |
Definition at line 177 of file Matrix.h.
Referenced by Rcpp::Matrix< LGLSXP >::fill_diag().
|
inlineprivate |
|
inlineprivate |
Definition at line 198 of file Matrix.h.
Referenced by Rcpp::Matrix< LGLSXP >::Matrix().
|
inline |
Definition at line 94 of file Matrix.h.
Referenced by Rcpp::internal::as_vector__impl(), fastLm(), Rcpp::Matrix< LGLSXP >::fill_diag__dispatch(), Rcpp::Matrix< LGLSXP >::fill_diag__dispatch(), Matrix(), Rcpp::Matrix< LGLSXP >::Matrix(), Rcpp::Matrix< LGLSXP >::operator()(), operator=(), and Rcpp::trimws().
|
inline |
Definition at line 97 of file Matrix.h.
Referenced by Rcpp::internal::as_vector__impl(), fastLm(), Rcpp::Matrix< LGLSXP >::fill_diag__dispatch(), Rcpp::Matrix< LGLSXP >::fill_diag__dispatch(), Matrix(), Rcpp::Matrix< LGLSXP >::operator()(), operator=(), and Rcpp::trimws().
|
inlineprivate |
Definition at line 174 of file Matrix.h.
Referenced by Rcpp::Matrix< LGLSXP >::operator()(), and Rcpp::Matrix< LGLSXP >::operator()().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Matrix< RTYPE, StoragePolicy > & Rcpp::Matrix< RTYPE, StoragePolicy >::operator= | ( | const SubMatrix< RTYPE > & | sub | ) |
Definition at line 71 of file SubMatrix.h.
References Rcpp::Vector< RTYPE, StoragePolicy >::begin(), Rcpp::SubMatrix< RTYPE >::column_iterator(), Matrix(), ncol(), Rcpp::SubMatrix< RTYPE >::ncol(), nrow(), Rcpp::SubMatrix< RTYPE >::nrow(), and nrows.

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 103 of file Matrix.h.
Referenced by Rcpp::operator<<(), Rcpp::operator<<(), Rcpp::operator<<(), and Rcpp::operator<<().
|
private |
Definition at line 29 of file Matrix.h.
Referenced by Matrix(), operator=(), and Rcpp::Matrix< LGLSXP >::operator=().