1 #ifndef STAN_LANG_AST_FUN_INFER_TYPE_INDEXING_DEF_HPP 2 #define STAN_LANG_AST_FUN_INFER_TYPE_INDEXING_DEF_HPP 12 size_t num_index_dims) {
13 if (num_index_dims <= num_expr_dims)
14 return expr_type(expr_base_type, num_expr_dims - num_index_dims);
15 if (num_index_dims == (num_expr_dims + 1)) {
21 if (num_index_dims == (num_expr_dims + 2))
30 size_t num_index_dims) {
const int ROW_VECTOR_T
Row vector type; scalar type is real.
Probability, optimization and sampling library.
std::size_t num_dims() const
Return the number of dimensions for this type.
const int DOUBLE_T
Real scalar type.
expr_type infer_type_indexing(const base_expr_type &base_type, std::size_t dims, std::size_t num_indexes)
Return the expression type resulting from indexing an expression of the specified base type and numbe...
int base_expr_type
The type of a base expression.
Structure of the type of an expression, which consists of a base type and a number of dimensions...
expr_type expression_type() const
base_expr_type base_type_
The base expression type.
const int VECTOR_T
Column vector type; scalar type is real.
const int MATRIX_T
Matrix type; scalar type is real.