1 #ifndef STAN_LANG_AST_FUN_IS_ASSIGNABLE_DEF_HPP 2 #define STAN_LANG_AST_FUN_IS_ASSIGNABLE_DEF_HPP 13 const std::string& failure_message,
14 std::ostream& error_msgs) {
15 bool assignable =
true;
18 error_msgs <<
"Mismatched array dimensions.";
24 error_msgs <<
"Base type mismatch. ";
27 error_msgs << failure_message << std::endl
28 <<
" LHS type = " << l_type <<
"; RHS type = " << r_type
std::size_t num_dims_
The number of array dimensions.
Probability, optimization and sampling library.
const int DOUBLE_T
Real scalar type.
bool is_assignable(const expr_type &l_type, const expr_type &r_type, const std::string &failure_message, std::ostream &error_msgs)
Return true if an expression of the right-hand side type is assignable to a variable of the left-hand...
Structure of the type of an expression, which consists of a base type and a number of dimensions...
base_expr_type base_type_
The base expression type.
const int INT_T
Integer type.