Rcpp Version 1.0.9
Rcpp::Matrix< RTYPE, StoragePolicy > Class Template Reference

#include <Matrix.h>

Inheritance diagram for Rcpp::Matrix< RTYPE, StoragePolicy >:
Collaboration diagram for Rcpp::Matrix< RTYPE, StoragePolicy >:

Classes

struct  can_have_na
 
struct  r_type
 

Public Types

typedef MatrixRow< RTYPE > Row
 
typedef ConstMatrixRow< RTYPE > ConstRow
 
typedef MatrixColumn< RTYPE > Column
 
typedef ConstMatrixColumn< RTYPE > ConstColumn
 
typedef SubMatrix< RTYPE > Sub
 
typedef StoragePolicy< MatrixStorage
 
typedef Vector< RTYPE, StoragePolicy > VECTOR
 
typedef VECTOR::iterator iterator
 
typedef VECTOR::const_iterator const_iterator
 
typedef VECTOR::converter_type converter_type
 
typedef VECTOR::stored_type stored_type
 
typedef VECTOR::Proxy Proxy
 
typedef VECTOR::const_Proxy const_Proxy
 
- Public Types inherited from Rcpp::Vector< RTYPE, PreserveStorage >
typedef PreserveStorage< VectorStorage
 
typedef traits::r_vector_proxy< RTYPE, PreserveStorage >::type Proxy
 
typedef traits::r_vector_const_proxy< RTYPE, PreserveStorage >::type const_Proxy
 
typedef traits::r_vector_name_proxy< RTYPE, PreserveStorage >::type NameProxy
 
typedef traits::r_vector_proxy< RTYPE, PreserveStorage >::type value_type
 
typedef traits::r_vector_iterator< RTYPE, PreserveStorage >::type iterator
 
typedef traits::r_vector_const_iterator< RTYPE, PreserveStorage >::type const_iterator
 
typedef traits::init_type< RTYPE >::type init_type
 
typedef traits::r_vector_element_converter< RTYPE >::type converter_type
 
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef internal::RangeIndexer< RTYPE, true, VectorIndexer
 
- Public Types inherited from Rcpp::VectorBase< RTYPE, true, Vector< RTYPE, PreserveStorage > >
typedef traits::storage_type< RTYPE >::type stored_type
 
typedef traits::storage_type< RTYPE >::type elem_type
 
typedef iter_base< iter_traits > iterator
 
typedef iter_base< const_iter_traits > const_iterator
 
- Public Types inherited from Rcpp::MatrixBase< RTYPE, true, Matrix< RTYPE, PreserveStorage > >
typedef traits::storage_type< RTYPE >::type stored_type
 

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 > &)
 
Matrixoperator= (const Matrix &other)
 
Matrixoperator= (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 (const Vector &other)
 
 Vector (SEXP x)
 
 Vector (const GenericProxy< Proxy > &proxy)
 
 Vector (const no_init_vector &obj)
 
 Vector (const T &size, const stored_type &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const int &size, const stored_type &u)
 
 Vector (const std::string &st)
 
 Vector (const char *st)
 
 Vector (const T &siz, stored_type(*gen)(void), typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (T size, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const int &size)
 
 Vector (const Dimension &dims)
 
 Vector (T value, typename Rcpp::traits::enable_if< traits::is_bool< T >::value &&RTYPE==LGLSXP, void >::type *=0)
 
 Vector (const Dimension &dims, const U &u)
 
 Vector (const VectorBase< RTYPE, NA, VEC > &other)
 
 Vector (const T &size, const U &u, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const sugar::SingleLogicalResult< NA, T > &obj)
 
 Vector (const T &siz, stored_type(*gen)(U1), const U1 &u1, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const T &siz, stored_type(*gen)(U1, U2), const U1 &u1, const U2 &u2, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (const T &siz, stored_type(*gen)(U1, U2, U3), const U1 &u1, const U2 &u2, const U3 &u3, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (InputIterator first, InputIterator last)
 
 Vector (InputIterator first, InputIterator last, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
 Vector (InputIterator first, InputIterator last, Func func)
 
 Vector (InputIterator first, InputIterator last, Func func, T n, typename Rcpp::traits::enable_if< traits::is_arithmetic< T >::value, void >::type *=0)
 
Vectoroperator= (const Vector &rhs)
 
Vectoroperator= (const T &x)
 
R_xlen_t length () const
 
R_xlen_t size () const
 
R_xlen_t offset (const int &i, const int &j) const
 
R_xlen_t offset (const R_xlen_t &i) const
 
R_xlen_t offset (const std::string &name) const
 
void fill (const U &u)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
Proxy operator[] (R_xlen_t i)
 
const_Proxy operator[] (R_xlen_t i) const
 
NameProxy operator[] (const std::string &name)
 
NameProxy operator[] (const std::string &name) const
 
SubsetProxy< RTYPE, PreserveStorage, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs)
 
const SubsetProxy< RTYPE, PreserveStorage, RHS_RTYPE, RHS_NA, RHS_T > operator[] (const VectorBase< RHS_RTYPE, RHS_NA, RHS_T > &rhs) const
 
Indexer operator[] (const Range &range)
 
Proxy operator() (const size_t &i)
 
const_Proxy operator() (const size_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
 
NameProxy operator() (const std::string &name)
 
NameProxy operator() (const std::string &name) const
 
Proxy at (const size_t &i)
 
const_Proxy at (const size_t &i) const
 
 operator RObject () const
 
Vectorsort (bool decreasing=false)
 
void assign (InputIterator first, InputIterator last)
 
void push_back (const T &object)
 
void push_back (const T &object, const std::string &name)
 
void push_front (const T &object)
 
void push_front (const T &object, const std::string &name)
 
iterator insert (iterator position, const T &object)
 
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 (SEXP)
 
Vectoroperator+= (const VectorBase< RTYPE, true, EXPR_VEC > &rhs)
 
Vectoroperator+= (const VectorBase< RTYPE, false, EXPR_VEC > &rhs)
 
bool containsElementNamed (const char *target) const
 
int findName (const std::string &name) const
 
SEXP eval () const
 
SEXP eval (SEXP env) 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)
 
const_SlotProxy slot (const std::string &name) const
 
bool hasSlot (const std::string &name) const
 
- Public Member Functions inherited from Rcpp::AttributeProxyPolicy< Vector< RTYPE, PreserveStorage > >
AttributeProxy attr (const std::string &name)
 
const_AttributeProxy attr (const std::string &name) const
 
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 ()
 
const_NamesProxy names () const
 
- 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 ()
 
const Vector< RTYPE, PreserveStorage > & get_ref () const
 
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 (traits::true_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 void replace_element__dispatch__isArgument (traits::true_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, PreserveStorageeye (int n)
 
static Matrix< RTYPE, PreserveStorageones (int n)
 
static Matrix< RTYPE, PreserveStoragezeros (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 ()
 

Detailed Description

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
class Rcpp::Matrix< RTYPE, StoragePolicy >

Definition at line 28 of file Matrix.h.

Member Typedef Documentation

◆ Column

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef MatrixColumn<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::Column

Definition at line 38 of file Matrix.h.

◆ const_iterator

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef VECTOR::const_iterator Rcpp::Matrix< RTYPE, StoragePolicy >::const_iterator

Definition at line 45 of file Matrix.h.

◆ const_Proxy

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef VECTOR::const_Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::const_Proxy

Definition at line 49 of file Matrix.h.

◆ ConstColumn

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef ConstMatrixColumn<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::ConstColumn

Definition at line 39 of file Matrix.h.

◆ ConstRow

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef ConstMatrixRow<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::ConstRow

Definition at line 37 of file Matrix.h.

◆ converter_type

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef VECTOR::converter_type Rcpp::Matrix< RTYPE, StoragePolicy >::converter_type

Definition at line 46 of file Matrix.h.

◆ iterator

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef VECTOR::iterator Rcpp::Matrix< RTYPE, StoragePolicy >::iterator

Definition at line 44 of file Matrix.h.

◆ Proxy

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef VECTOR::Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::Proxy

Definition at line 48 of file Matrix.h.

◆ Row

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef MatrixRow<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::Row

Definition at line 36 of file Matrix.h.

◆ Storage

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef StoragePolicy<Matrix> Rcpp::Matrix< RTYPE, StoragePolicy >::Storage

Definition at line 42 of file Matrix.h.

◆ stored_type

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef VECTOR::stored_type Rcpp::Matrix< RTYPE, StoragePolicy >::stored_type

Definition at line 47 of file Matrix.h.

◆ Sub

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef SubMatrix<RTYPE> Rcpp::Matrix< RTYPE, StoragePolicy >::Sub

Definition at line 40 of file Matrix.h.

◆ VECTOR

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
typedef Vector<RTYPE, StoragePolicy> Rcpp::Matrix< RTYPE, StoragePolicy >::VECTOR

Definition at line 43 of file Matrix.h.

Constructor & Destructor Documentation

◆ Matrix() [1/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( )
inline

Definition at line 51 of file Matrix.h.

◆ Matrix() [2/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( SEXP  x)
inline

Definition at line 53 of file Matrix.h.

◆ Matrix() [3/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const Dimension dims)
inline

Definition at line 55 of file Matrix.h.

References Rcpp::Vector< RTYPE, PreserveStorage >::dims(), and Rcpp::Vector< RTYPE, StoragePolicy >::init().

Here is the call graph for this function:

◆ Matrix() [4/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const int &  nrows_,
const int &  ncols 
)
inline

Definition at line 59 of file Matrix.h.

◆ Matrix() [5/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename Iterator >
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const int &  nrows_,
const int &  ncols,
Iterator  start 
)
inline

Definition at line 64 of file Matrix.h.

References Rcpp::AttributeProxyPolicy< Vector< RTYPE, PreserveStorage > >::attr(), and Rcpp::Matrix< RTYPE, StoragePolicy >::nrows.

Here is the call graph for this function:

◆ Matrix() [6/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const int &  n)
inline

Definition at line 71 of file Matrix.h.

◆ Matrix() [7/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const Matrix< RTYPE, StoragePolicy > &  other)
inline

Definition at line 74 of file Matrix.h.

◆ Matrix() [8/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<bool NA, typename MAT >
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const MatrixBase< RTYPE, NA, MAT > &  other)
inline

Definition at line 77 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::ncol(), and Rcpp::Matrix< RTYPE, StoragePolicy >::nrows.

Here is the call graph for this function:

◆ Matrix() [9/10]

template<int RTYPE, template< class > class StoragePolicy>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const SubMatrix< RTYPE > &  sub)

◆ Matrix() [10/10]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Rcpp::Matrix< RTYPE, StoragePolicy >::Matrix ( const no_init_matrix obj)
inlineexplicit

Definition at line 92 of file Matrix.h.

Member Function Documentation

◆ at() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::at ( const size_t &  i,
const size_t &  j 
)
inline

Definition at line 144 of file Matrix.h.

◆ at() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::at ( const size_t &  i,
const size_t &  j 
) const
inline

Definition at line 147 of file Matrix.h.

◆ begin() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Matrix< RTYPE, StoragePolicy >::begin ( )
inline

Definition at line 116 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin().

Here is the call graph for this function:

◆ begin() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Matrix< RTYPE, StoragePolicy >::begin ( ) const
inline

Definition at line 112 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin().

Referenced by fastLm().

Here is the call graph for this function:

◆ cbegin()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Matrix< RTYPE, StoragePolicy >::cbegin ( ) const
inline

Definition at line 114 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin().

Here is the call graph for this function:

◆ cend()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Matrix< RTYPE, StoragePolicy >::cend ( ) const
inline

Definition at line 115 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::end().

Here is the call graph for this function:

◆ cols()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
int Rcpp::Matrix< RTYPE, StoragePolicy >::cols ( ) const
inline

Definition at line 100 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::dims().

Here is the call graph for this function:

◆ column() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Column Rcpp::Matrix< RTYPE, StoragePolicy >::column ( int  i)
inline

Definition at line 109 of file Matrix.h.

◆ column() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
ConstColumn Rcpp::Matrix< RTYPE, StoragePolicy >::column ( int  i) const
inline

Definition at line 110 of file Matrix.h.

◆ diag()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
static Matrix Rcpp::Matrix< RTYPE, StoragePolicy >::diag ( int  size,
const U &  diag_value 
)
inlinestatic

Definition at line 124 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::fill_diag(), and Rcpp::Vector< RTYPE, PreserveStorage >::size().

Here is the call graph for this function:

◆ end() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
iterator Rcpp::Matrix< RTYPE, StoragePolicy >::end ( )
inline

Definition at line 117 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::end().

Here is the call graph for this function:

◆ end() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_iterator Rcpp::Matrix< RTYPE, StoragePolicy >::end ( ) const
inline

Definition at line 113 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::end().

Here is the call graph for this function:

◆ fill_diag()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
void Rcpp::Matrix< RTYPE, StoragePolicy >::fill_diag ( const U &  u)
inline

Definition at line 120 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::fill_diag__dispatch().

Referenced by Rcpp::Matrix< RTYPE, StoragePolicy >::diag().

Here is the call graph for this function:

◆ fill_diag__dispatch() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
void Rcpp::Matrix< RTYPE, StoragePolicy >::fill_diag__dispatch ( traits::false_type  ,
const U &  u 
)
inlineprivate

◆ fill_diag__dispatch() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<typename U >
void Rcpp::Matrix< RTYPE, StoragePolicy >::fill_diag__dispatch ( traits::true_type  ,
const U &  u 
)
inlineprivate

◆ import_matrix_expression()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
template<bool NA, typename MAT >
void Rcpp::Matrix< RTYPE, StoragePolicy >::import_matrix_expression ( const MatrixBase< RTYPE, NA, MAT > &  other,
int  nr,
int  nc 
)
inlineprivate

Definition at line 198 of file Matrix.h.

References Rcpp::Vector< RTYPE, StoragePolicy >::begin().

Here is the call graph for this function:

◆ ncol()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
int Rcpp::Matrix< RTYPE, StoragePolicy >::ncol ( ) const
inline

◆ nrow()

◆ offset()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
R_xlen_t Rcpp::Matrix< RTYPE, StoragePolicy >::offset ( const int  i,
const int  j 
) const
inlineprivate

◆ operator()() [1/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Sub Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( const Range row_range,
const Range col_range 
)
inline

Definition at line 163 of file Matrix.h.

◆ operator()() [2/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Sub Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( const Range row_range,
internal::NamedPlaceHolder   
)
inline

Definition at line 169 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::ncol().

Here is the call graph for this function:

◆ operator()() [3/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( const size_t &  i,
const size_t &  j 
)
inline

Definition at line 137 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ operator()() [4/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( const size_t &  i,
const size_t &  j 
) const
inline

Definition at line 140 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::offset().

Here is the call graph for this function:

◆ operator()() [5/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Row Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( int  i,
internal::NamedPlaceHolder   
)
inline

Definition at line 151 of file Matrix.h.

◆ operator()() [6/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
ConstRow Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( int  i,
internal::NamedPlaceHolder   
) const
inline

Definition at line 154 of file Matrix.h.

◆ operator()() [7/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Sub Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( internal::NamedPlaceHolder  ,
const Range col_range 
)
inline

Definition at line 166 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::nrow().

Here is the call graph for this function:

◆ operator()() [8/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Column Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( internal::NamedPlaceHolder  ,
int  i 
)
inline

Definition at line 157 of file Matrix.h.

◆ operator()() [9/9]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
ConstColumn Rcpp::Matrix< RTYPE, StoragePolicy >::operator() ( internal::NamedPlaceHolder  ,
int  i 
) const
inline

Definition at line 160 of file Matrix.h.

◆ operator=() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Matrix& Rcpp::Matrix< RTYPE, StoragePolicy >::operator= ( const Matrix< RTYPE, StoragePolicy > &  other)
inline

◆ operator=() [2/2]

template<int RTYPE, template< class > class StoragePolicy>
Matrix< RTYPE, StoragePolicy > & Rcpp::Matrix< RTYPE, StoragePolicy >::operator= ( const SubMatrix< RTYPE > &  sub)

Definition at line 72 of file SubMatrix.h.

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

Here is the call graph for this function:

◆ operator[]() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::operator[] ( R_xlen_t  i)
inline

Definition at line 130 of file Matrix.h.

◆ operator[]() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
const_Proxy Rcpp::Matrix< RTYPE, StoragePolicy >::operator[] ( R_xlen_t  i) const
inline

Definition at line 133 of file Matrix.h.

◆ row() [1/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
Row Rcpp::Matrix< RTYPE, StoragePolicy >::row ( int  i)
inline

Definition at line 107 of file Matrix.h.

◆ row() [2/2]

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
ConstRow Rcpp::Matrix< RTYPE, StoragePolicy >::row ( int  i) const
inline

Definition at line 108 of file Matrix.h.

◆ rows()

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
int Rcpp::Matrix< RTYPE, StoragePolicy >::rows ( ) const
inline

Definition at line 103 of file Matrix.h.

References Rcpp::Matrix< RTYPE, StoragePolicy >::nrows.

Referenced by Rcpp::operator<<().

Member Data Documentation

◆ nrows

template<int RTYPE, template< class > class StoragePolicy = PreserveStorage>
int Rcpp::Matrix< RTYPE, StoragePolicy >::nrows
private

The documentation for this class was generated from the following files: