![]() |
Stan
2.10.0
probability, sampling & optimization
|
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_same.hpp>
#include <Eigen/Dense>
#include <stan/math/prim/scal/err/check_equal.hpp>
#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 <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 , typename U > | |
void | stan::model::assign (T &x, const nil_index_list &, const U &y, const char *name="ANON", int depth=0) |
Assign the specified scalar reference under the specified indexing to the specified scalar value. More... | |
template<typename T , typename U , int R, int C> | |
void | stan::model::assign (Eigen::Matrix< T, R, C > &x, const nil_index_list &, const Eigen::Matrix< U, R, C > &y, const char *name="ANON", int depth=0) |
template<typename T , typename U > | |
void | stan::model::assign (std::vector< T > &x, const nil_index_list &, const std::vector< U > &y, const char *name="ANON", int depth=0) |
template<typename T , typename U > | |
void | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, 1 > &x, const cons_index_list< index_uni, nil_index_list > &idxs, const U &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen vector at the specified single index to the specified value. More... | |
template<typename T , typename U > | |
void | stan::model::assign (Eigen::Matrix< T, 1, Eigen::Dynamic > &x, const cons_index_list< index_uni, nil_index_list > &idxs, const U &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen vector at the specified single index to the specified value. More... | |
template<typename T , typename I , typename U > | |
boost::disable_if< boost::is_same< I, index_uni >, void >::type | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, 1 > &x, const cons_index_list< I, nil_index_list > &idxs, const Eigen::Matrix< U, Eigen::Dynamic, 1 > &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen vector at the specified multiple index to the specified value. More... | |
template<typename T , typename I , typename U > | |
boost::disable_if< boost::is_same< I, index_uni >, void >::type | stan::model::assign (Eigen::Matrix< T, 1, Eigen::Dynamic > &x, const cons_index_list< I, nil_index_list > &idxs, const Eigen::Matrix< U, 1, Eigen::Dynamic > &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen row vector at the specified multiple index to the specified value. More... | |
template<typename T , typename U > | |
void | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &x, const cons_index_list< index_uni, nil_index_list > &idxs, const Eigen::Matrix< U, 1, Eigen::Dynamic > &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen matrix at the specified single index to the specified row vector value. More... | |
template<typename T , typename I , typename U > | |
boost::disable_if< boost::is_same< I, index_uni >, void >::type | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &x, const cons_index_list< I, nil_index_list > &idxs, const Eigen::Matrix< U, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen matrix at the specified multiple index to the specified matrix value. More... | |
template<typename T , typename U > | |
void | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &x, const cons_index_list< index_uni, cons_index_list< index_uni, nil_index_list > > &idxs, const U &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen matrix at the specified pair of single indexes to the specified scalar value. More... | |
template<typename T , typename I , typename U > | |
boost::disable_if< boost::is_same< I, index_uni >, void >::type | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &x, const cons_index_list< index_uni, cons_index_list< I, nil_index_list > > &idxs, const Eigen::Matrix< U, 1, Eigen::Dynamic > &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen matrix at the specified single and multiple index to the specified row vector. More... | |
template<typename T , typename I , typename U > | |
boost::disable_if< boost::is_same< I, index_uni >, void >::type | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &x, const cons_index_list< I, cons_index_list< index_uni, nil_index_list > > &idxs, const Eigen::Matrix< U, Eigen::Dynamic, 1 > &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen matrix at the specified multiple and single index to the specified vector. More... | |
template<typename T , typename I1 , typename I2 , typename U > | |
boost::disable_if_c< boost::is_same< I1, index_uni >::value||boost::is_same< I2, index_uni >::value, void >::type | stan::model::assign (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &x, const cons_index_list< I1, cons_index_list< I2, nil_index_list > > &idxs, const Eigen::Matrix< U, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name="ANON", int depth=0) |
Assign the specified Eigen matrix at the specified pair of multiple indexes to the specified matrix. More... | |
template<typename T , typename L , typename U > | |
void | stan::model::assign (std::vector< T > &x, const cons_index_list< index_uni, L > &idxs, const U &y, const char *name="ANON", int depth=0) |
Assign the specified array (standard vector) at the specified index list beginning with a single index to the specified value. More... | |
template<typename T , typename I , typename L , typename U > | |
boost::disable_if< boost::is_same< I, index_uni >, void >::type | stan::model::assign (std::vector< T > &x, const cons_index_list< I, L > &idxs, const std::vector< U > &y, const char *name="ANON", int depth=0) |
Assign the specified array (standard vector) at the specified index list beginning with a multiple index to the specified value. More... | |