Rcpp Version 1.0.9
Matrix.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Rcpp::Matrix< RTYPE, StoragePolicy >
 
struct  Rcpp::Matrix< RTYPE, StoragePolicy >::r_type
 
struct  Rcpp::Matrix< RTYPE, StoragePolicy >::can_have_na
 

Namespaces

 Rcpp
 Rcpp API.
 

Macros

#define RCPP_GENERATE_MATRIX_SCALAR_OPERATOR(__OPERATOR__)
 
#define RCPP_GENERATE_SCALAR_MATRIX_OPERATOR(__OPERATOR__)
 

Functions

internal::DimNameProxy Rcpp::rownames (SEXP x)
 
internal::DimNameProxy Rcpp::colnames (SEXP x)
 
template<template< class > class StoragePolicy>
std::ostream & Rcpp::operator<< (std::ostream &s, const Matrix< REALSXP, StoragePolicy > &rhs)
 
template<template< class > class StoragePolicy>
std::ostream & Rcpp::operator<< (std::ostream &s, const Matrix< INTSXP, StoragePolicy > &rhs)
 
template<template< class > class StoragePolicy>
std::ostream & Rcpp::operator<< (std::ostream &s, const Matrix< STRSXP, StoragePolicy > &rhs)
 
template<int RTYPE, template< class > class StoragePolicy>
std::ostream & Rcpp::operator<< (std::ostream &s, const Matrix< RTYPE, StoragePolicy > &rhs)
 
template<int RTYPE, template< class > class StoragePolicy>
Matrix< RTYPE, StoragePolicy > Rcpp::tranpose_impl (const Matrix< RTYPE, StoragePolicy > &x)
 
template<template< class > class StoragePolicy>
Matrix< REALSXP, StoragePolicy > Rcpp::transpose (const Matrix< REALSXP, StoragePolicy > &x)
 
template<template< class > class StoragePolicy>
Matrix< INTSXP, StoragePolicy > Rcpp::transpose (const Matrix< INTSXP, StoragePolicy > &x)
 
template<template< class > class StoragePolicy>
Matrix< STRSXP, StoragePolicy > Rcpp::transpose (const Matrix< STRSXP, StoragePolicy > &x)
 

Macro Definition Documentation

◆ RCPP_GENERATE_MATRIX_SCALAR_OPERATOR

#define RCPP_GENERATE_MATRIX_SCALAR_OPERATOR (   __OPERATOR__)
Value:
template <int RTYPE, template <class> class StoragePolicy, typename T > \
inline typename traits::enable_if< traits::is_convertible< typename traits::remove_const_and_reference< T >::type, \
typename Matrix<RTYPE, StoragePolicy>::stored_type >::value, Matrix<RTYPE, StoragePolicy> >::type \
operator __OPERATOR__ (const Matrix<RTYPE, StoragePolicy> &lhs, const T &rhs) { \
Vector<RTYPE, StoragePolicy> v = static_cast<const Vector<RTYPE, StoragePolicy> &>(lhs) __OPERATOR__ rhs; \
v.attr("dim") = Vector<INTSXP>::create(lhs.nrow(), lhs.ncol()); \
return as< Matrix<RTYPE, StoragePolicy> >(v); \
}
static Vector create()
Definition: Vector.h:1122

Definition at line 250 of file Matrix.h.

◆ RCPP_GENERATE_SCALAR_MATRIX_OPERATOR

#define RCPP_GENERATE_SCALAR_MATRIX_OPERATOR (   __OPERATOR__)
Value:
template <int RTYPE, template <class> class StoragePolicy, typename T > \
inline typename traits::enable_if< traits::is_convertible< typename traits::remove_const_and_reference< T >::type, \
typename Matrix<RTYPE, StoragePolicy>::stored_type >::value, Matrix<RTYPE, StoragePolicy> >::type \
operator __OPERATOR__ (const T &lhs, const Matrix<RTYPE, StoragePolicy> &rhs) { \
Vector<RTYPE, StoragePolicy> v = lhs __OPERATOR__ static_cast<const Vector<RTYPE, StoragePolicy> &>(rhs); \
v.attr("dim") = Vector<INTSXP>::create(rhs.nrow(), rhs.ncol()); \
return as< Matrix<RTYPE, StoragePolicy> >(v); \
}

Definition at line 267 of file Matrix.h.