1 #ifndef STAN_LANG_AST_EXPR_TYPE_DEF_HPP 2 #define STAN_LANG_AST_EXPR_TYPE_DEF_HPP 25 return !(*
this == et);
80 for (
size_t i = 1; i < et.
num_dims(); ++i) o <<
",";
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.
const int DOUBLE_T
Real scalar 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.
const int VOID_T
Void type.
bool operator>=(const expr_type &et) const
Return true if this expression type is greater than or equal to the specified expression type...
std::ostream & operator<<(std::ostream &o, const expr_type &et)
Stream a user-readable version of the expression type to the specified output stream, returning the speicifed argument output stream to allow chaining.
base_expr_type base_type_
The base expression type.
const int INT_T
Integer type.
bool is_primitive() const
Return true if this expression type is an integer or real type with zero dimensions.
std::ostream & write_base_expr_type(std::ostream &o, base_expr_type type)
Write a user-readable version of the specified base expression type to the specified output stream...
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 ...
const int ILL_FORMED_T
Type denoting an ill-formed expression.