1 #ifndef STAN_LANG_AST_EXPR_TYPE_HPP 2 #define STAN_LANG_AST_EXPR_TYPE_HPP bool is_primitive_int() const
Return true if this expression type is an integer type with zero dimensions.
bool is_ill_formed() const
Return true if the base type of this type is ill formed.
std::size_t num_dims_
The number of array dimensions.
Probability, optimization and sampling library.
bool operator<=(const expr_type &et) const
Return true if this expression type is less than or equal to the specified expression type...
std::size_t num_dims() const
Return the number of dimensions for this type.
bool operator<(const expr_type &et) const
Return true if this expression type is less than the specified expression type.
bool is_primitive_double() const
Return true if this expression type is a real type with zero dimensions.
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...
bool operator!=(const expr_type &et) const
Return true if this expression type is not equal to the specified expression type.
bool operator>(const expr_type &et) const
Return true if this expression type is greater than the specified expression type.
base_expr_type type() const
Return the base type of this expression type.
expr_type()
Construct an empty expression type.
bool operator>=(const expr_type &et) const
Return true if this expression type is greater than or equal to the specified expression type...
base_expr_type base_type_
The base expression type.
bool is_primitive() const
Return true if this expression type is an integer or real type with zero dimensions.
bool is_void() const
Return true if this type is void.
bool operator==(const expr_type &et) const
Return true if the specified expression type is equal to this expression type in the sense of having ...