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


Classes | |
| struct | can_have_na |
| struct | r_type |
Public Types | |
| typedef Vector< RTYPE > | VECTOR |
| typedef VECTOR::iterator | iterator |
| typedef VECTOR::converter_type | converter_type |
| typedef VECTOR::stored_type | stored_type |
| typedef VECTOR::Proxy | Proxy |
| typedef MatrixRow< RTYPE > | Row |
| typedef MatrixColumn< RTYPE > | Column |
| typedef SubMatrix< RTYPE > | Sub |
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) | |
| Matrix & | operator= (const Matrix &other) |
| template<bool NA, typename MAT > | |
| Matrix (const MatrixBase< RTYPE, NA, MAT > &other) | |
| Matrix (const SubMatrix< RTYPE > &) | |
| Matrix & | operator= (const SubMatrix< RTYPE > &) |
| template<typename U > | |
| void | fill_diag (const U &u) |
| Proxy | operator[] (int i) |
| Proxy | operator[] (int i) const |
| Proxy | operator() (const size_t &i, const size_t &j) |
| Proxy | operator() (const size_t &i, const size_t &j) const |
| Row | operator() (int i, internal::NamedPlaceHolder) |
| Column | operator() (internal::NamedPlaceHolder, int i) |
| 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) |
| int | ncol () const |
| int | nrow () const |
| int | cols () const |
| int | rows () const |
| Row | row (int i) |
| Column | column (int i) |
| iterator | begin () const |
| iterator | end () const |
Static Public Member Functions | |
| template<typename U > | |
| static Matrix | diag (int size, const U &diag_value) |
Private Member Functions | |
| template<bool NA, typename MAT > | |
| void | import_matrix_expression (const MatrixBase< RTYPE, NA, MAT > &other, int nr, int nc) |
| int | offset (int i, int j) const |
| virtual void | update () |
| 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) |
Private Attributes | |
| int | nrows |
| typedef MatrixColumn<RTYPE> Matrix< RTYPE >::Column |
| typedef VECTOR::converter_type Matrix< RTYPE >::converter_type |
Reimplemented from Vector< RTYPE >.
| typedef VECTOR::iterator Matrix< RTYPE >::iterator |
Reimplemented from Vector< RTYPE >.
| typedef VECTOR::Proxy Matrix< RTYPE >::Proxy |
Reimplemented from Vector< RTYPE >.
| typedef VECTOR::stored_type Matrix< RTYPE >::stored_type |
Reimplemented from Vector< RTYPE >.
Definition at line 39 of file Matrix.h.
References Vector< RTYPE >::dims(), Matrix< RTYPE >::nrows, Rcpp::r_cast(), x, and y.

Definition at line 46 of file Matrix.h.
References Vector< RTYPE >::init().

| Matrix< RTYPE >::Matrix | ( | const int & | nrows_, |
| const int & | ncols, | ||
| Iterator | start | ||
| ) | [inline] |
Definition at line 58 of file Matrix.h.
References Matrix< RTYPE >::nrows.
| Matrix< RTYPE >::Matrix | ( | const MatrixBase< RTYPE, NA, MAT > & | other | ) | [inline] |
Definition at line 82 of file Matrix.h.
References 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.

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

| int Matrix< RTYPE >::cols | ( | ) | const [inline] |
Definition at line 206 of file Matrix.h.
References Vector< RTYPE >::dims().

| static Matrix Matrix< RTYPE >::diag | ( | int | size, |
| const U & | diag_value | ||
| ) | [inline, static] |
Definition at line 112 of file Matrix.h.
References Matrix< RTYPE >::fill_diag().

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

Definition at line 107 of file Matrix.h.
References Matrix< RTYPE >::fill_diag__dispatch().
Referenced by Matrix< RTYPE >::diag().

| void Matrix< RTYPE >::fill_diag__dispatch | ( | traits::false_type | , |
| const U & | u | ||
| ) | [inline, private] |
Definition at line 175 of file Matrix.h.
References Vector< RTYPE >::begin(), i, n, Matrix< RTYPE >::ncol(), Matrix< RTYPE >::offset(), and PROTECT().
Referenced by Matrix< RTYPE >::fill_diag().

| void Matrix< RTYPE >::fill_diag__dispatch | ( | traits::true_type | , |
| const U & | u | ||
| ) | [inline, private] |
Definition at line 188 of file Matrix.h.
References Vector< RTYPE >::begin(), i, n, Matrix< RTYPE >::ncol(), and Matrix< RTYPE >::offset().

| void Matrix< RTYPE >::import_matrix_expression | ( | const MatrixBase< RTYPE, NA, MAT > & | other, |
| int | nr, | ||
| int | nc | ||
| ) | [inline, private] |
Definition at line 95 of file Matrix.h.
References Vector< RTYPE >::begin(), i, and j.

| int Matrix< RTYPE >::ncol | ( | ) | const [inline] |
Definition at line 200 of file Matrix.h.
References Vector< RTYPE >::dims().
Referenced by Matrix< RTYPE >::fill_diag__dispatch(), MatrixColumn< RTYPE >::MatrixColumn(), Matrix< RTYPE >::operator()(), and MatrixRow< RTYPE >::size().

| int Matrix< RTYPE >::nrow | ( | ) | const [inline] |
Definition at line 203 of file Matrix.h.
References Matrix< RTYPE >::nrows.
Referenced by MatrixColumn< RTYPE >::end(), MatrixRow< RTYPE >::MatrixRow(), Matrix< RTYPE >::operator()(), and MatrixColumn< RTYPE >::size().
| int Matrix< RTYPE >::offset | ( | int | i, |
| int | j | ||
| ) | const [inline, private] |
Definition at line 165 of file Matrix.h.
References j, and Matrix< RTYPE >::nrows.
Referenced by Matrix< RTYPE >::fill_diag__dispatch(), and Matrix< RTYPE >::operator()().
| Sub Matrix< RTYPE >::operator() | ( | const Range & | row_range, |
| internal::NamedPlaceHolder | |||
| ) | [inline] |
Definition at line 158 of file Matrix.h.
References Matrix< RTYPE >::ncol().

| Proxy Matrix< RTYPE >::operator() | ( | const size_t & | i, |
| const size_t & | j | ||
| ) | [inline] |
Reimplemented from Vector< RTYPE >.
Definition at line 126 of file Matrix.h.
References Matrix< RTYPE >::offset().

| Proxy Matrix< RTYPE >::operator() | ( | const size_t & | i, |
| const size_t & | j | ||
| ) | const [inline] |
Reimplemented from Vector< RTYPE >.
Definition at line 132 of file Matrix.h.
References Matrix< RTYPE >::offset().

| Sub Matrix< RTYPE >::operator() | ( | internal::NamedPlaceHolder | , |
| const Range & | col_range | ||
| ) | [inline] |
Definition at line 154 of file Matrix.h.
References Matrix< RTYPE >::nrow().

Definition at line 71 of file SubMatrix.h.
References SubMatrix< RTYPE >::column_iterator(), i, j, SubMatrix< RTYPE >::ncol(), and SubMatrix< RTYPE >::nrow().

Definition at line 73 of file Matrix.h.
References Matrix< RTYPE >::nrows, and x.
Reimplemented from Vector< RTYPE >.
Reimplemented from Vector< RTYPE >.
| int Matrix< RTYPE >::rows | ( | ) | const [inline] |
Definition at line 209 of file Matrix.h.
References Matrix< RTYPE >::nrows.
| virtual void Matrix< RTYPE >::update | ( | ) | [inline, private, virtual] |
Reimplemented from Vector< RTYPE >.
Definition at line 169 of file Matrix.h.
References DEMANGLE, RCPP_DEBUG_1, and Vector< RTYPE >::update_vector().

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