Stan  2.10.0
probability, sampling & optimization
Namespaces | Functions
rvalue.hpp File Reference
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_same.hpp>
#include <Eigen/Dense>
#include <stan/math/prim/mat/err/check_range.hpp>
#include <stan/model/indexing/index.hpp>
#include <stan/model/indexing/index_list.hpp>
#include <stan/model/indexing/rvalue_at.hpp>
#include <stan/model/indexing/rvalue_index_size.hpp>
#include <stan/model/indexing/rvalue_return.hpp>
#include <vector>

Go to the source code of this file.

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::model
 For compiling models.
 

Functions

template<typename T >
stan::model::rvalue (const T &c, const nil_index_list &, const char *="", int=0)
 Return the result of indexing a specified value with a nil index list, which just returns the value. More...
 
template<typename T >
stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &v, const cons_index_list< index_uni, nil_index_list > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen vector with a sequence containing one single index, returning a scalar. More...
 
template<typename T >
stan::model::rvalue (const Eigen::Matrix< T, 1, Eigen::Dynamic > &rv, const cons_index_list< index_uni, nil_index_list > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen row vector with a sequence containing one single index, returning a scalar. More...
 
template<typename T , typename I >
boost::disable_if< boost::is_same< I, index_uni >, Eigen::Matrix< T, Eigen::Dynamic, 1 > >::type stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &v, const cons_index_list< I, nil_index_list > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen vector with a sequence containing one multiple index, returning a vector. More...
 
template<typename T , typename I >
boost::disable_if< boost::is_same< I, index_uni >, Eigen::Matrix< T, 1, Eigen::Dynamic > >::type stan::model::rvalue (const Eigen::Matrix< T, 1, Eigen::Dynamic > &rv, const cons_index_list< I, nil_index_list > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen row vector with a sequence containing one multiple index, returning a row vector. More...
 
template<typename T >
Eigen::Matrix< T, 1, Eigen::Dynamic > stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &a, const cons_index_list< index_uni, nil_index_list > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen matrix with a sequence consisting of one single index, returning a row vector. More...
 
template<typename T , typename I >
boost::disable_if< boost::is_same< I, index_uni >, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > >::type stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &a, const cons_index_list< I, nil_index_list > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen matrix with a sequence consisting of a one multiple index, returning a matrix. More...
 
template<typename T >
stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &a, const cons_index_list< index_uni, cons_index_list< index_uni, nil_index_list > > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen matrix with a sequence consisting of two single indexes, returning a scalar. More...
 
template<typename T , typename I >
boost::disable_if< boost::is_same< I, index_uni >, Eigen::Matrix< T, 1, Eigen::Dynamic > >::type stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &a, const cons_index_list< index_uni, cons_index_list< I, nil_index_list > > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen matrix with a sequence consisting of a single index and multiple index, returning a row vector. More...
 
template<typename T , typename I >
boost::disable_if< boost::is_same< I, index_uni >, Eigen::Matrix< T, Eigen::Dynamic, 1 > >::type stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &a, const cons_index_list< I, cons_index_list< index_uni, nil_index_list > > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen matrix with a sequence consisting of a multiple index and a single index, returning a vector. More...
 
template<typename T , typename I1 , typename I2 >
boost::disable_if_c< boost::is_same< I1, index_uni >::value||boost::is_same< I2, index_uni >::value, Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > >::type stan::model::rvalue (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &a, const cons_index_list< I1, cons_index_list< I2, nil_index_list > > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified Eigen matrix with a sequence consisting of a pair o multiple indexes, returning a a matrix. More...
 
template<typename T , typename L >
rvalue_return< std::vector< T >, cons_index_list< index_uni, L > >::type stan::model::rvalue (const std::vector< T > &c, const cons_index_list< index_uni, L > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified array with a list of indexes beginning with a single index; the result is determined recursively. More...
 
template<typename T , typename I , typename L >
rvalue_return< std::vector< T >, cons_index_list< I, L > >::type stan::model::rvalue (const std::vector< T > &c, const cons_index_list< I, L > &idx, const char *name="ANON", int depth=0)
 Return the result of indexing the specified array with a list of indexes beginning with a multiple index; the result is determined recursively. More...
 

     [ Stan Home Page ] © 2011–2016, Stan Development Team.