![]() |
Stan
2.14.0
probability, sampling & optimization
|
Structure of the type of an expression, which consists of a base type and a number of dimensions. More...
#include <expr_type.hpp>
Public Member Functions | |
expr_type () | |
Construct an empty expression type. More... | |
expr_type (const base_expr_type base_type) | |
Construct an expression type with the specified base type and zero array dimensions. More... | |
expr_type (const base_expr_type base_type, std::size_t num_dims) | |
Construct an expression type with the specified base type and specified number of array dimensions. More... | |
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 the same base type and same number of dimensions. More... | |
bool | operator!= (const expr_type &et) const |
Return true if this expression type is not equal to the specified expression type. More... | |
bool | operator< (const expr_type &et) const |
Return true if this expression type is less than the specified expression type. More... | |
bool | operator<= (const expr_type &et) const |
Return true if this expression type is less than or equal to the specified expression type. More... | |
bool | operator> (const expr_type &et) const |
Return true if this expression type is greater than the specified expression type. More... | |
bool | operator>= (const expr_type &et) const |
Return true if this expression type is greater than or equal to the specified expression type. More... | |
bool | is_primitive () const |
Return true if this expression type is an integer or real type with zero dimensions. More... | |
bool | is_primitive_int () const |
Return true if this expression type is an integer type with zero dimensions. More... | |
bool | is_primitive_double () const |
Return true if this expression type is a real type with zero dimensions. More... | |
bool | is_ill_formed () const |
Return true if the base type of this type is ill formed. More... | |
bool | is_void () const |
Return true if this type is void. More... | |
base_expr_type | type () const |
Return the base type of this expression type. More... | |
std::size_t | num_dims () const |
Return the number of dimensions for this type. More... | |
Public Attributes | |
base_expr_type | base_type_ |
The base expression type. More... | |
std::size_t | num_dims_ |
The number of array dimensions. More... | |
Structure of the type of an expression, which consists of a base type and a number of dimensions.
Definition at line 14 of file expr_type.hpp.
stan::lang::expr_type::expr_type | ( | ) |
Construct an empty expression type.
Definition at line 12 of file expr_type_def.hpp.
stan::lang::expr_type::expr_type | ( | const base_expr_type | base_type | ) |
Construct an expression type with the specified base type and zero array dimensions.
base_type | base type |
Definition at line 14 of file expr_type_def.hpp.
stan::lang::expr_type::expr_type | ( | const base_expr_type | base_type, |
std::size_t | num_dims | ||
) |
Construct an expression type with the specified base type and specified number of array dimensions.
base_type | base type |
num_dims | number of dimensions |
bool stan::lang::expr_type::is_ill_formed | ( | ) | const |
Return true if the base type of this type is ill formed.
Definition at line 60 of file expr_type_def.hpp.
bool stan::lang::expr_type::is_primitive | ( | ) | const |
Return true if this expression type is an integer or real type with zero dimensions.
Definition at line 48 of file expr_type_def.hpp.
bool stan::lang::expr_type::is_primitive_double | ( | ) | const |
Return true if this expression type is a real type with zero dimensions.
Definition at line 56 of file expr_type_def.hpp.
bool stan::lang::expr_type::is_primitive_int | ( | ) | const |
Return true if this expression type is an integer type with zero dimensions.
Definition at line 52 of file expr_type_def.hpp.
bool stan::lang::expr_type::is_void | ( | ) | const |
Return true if this type is void.
Definition at line 64 of file expr_type_def.hpp.
size_t stan::lang::expr_type::num_dims | ( | ) | const |
Return the number of dimensions for this type.
Definition at line 72 of file expr_type_def.hpp.
bool stan::lang::expr_type::operator!= | ( | const expr_type & | et | ) | const |
Return true if this expression type is not equal to the specified expression type.
et | Other expression type. |
Definition at line 24 of file expr_type_def.hpp.
bool stan::lang::expr_type::operator< | ( | const expr_type & | et | ) | const |
Return true if this expression type is less than the specified expression type.
Types are ordered lexicographically by the integer value of their base type and then their number of dimensions.
et | Other expression type. |
Definition at line 28 of file expr_type_def.hpp.
bool stan::lang::expr_type::operator<= | ( | const expr_type & | et | ) | const |
Return true if this expression type is less than or equal to the specified expression type.
et | Other expression type. |
Definition at line 33 of file expr_type_def.hpp.
bool stan::lang::expr_type::operator== | ( | const expr_type & | et | ) | const |
Return true if the specified expression type is equal to this expression type in the sense of having the same base type and same number of dimensions.
et | Other expression type. |
Definition at line 20 of file expr_type_def.hpp.
bool stan::lang::expr_type::operator> | ( | const expr_type & | et | ) | const |
Return true if this expression type is greater than the specified expression type.
et | Other expression type. |
Definition at line 38 of file expr_type_def.hpp.
bool stan::lang::expr_type::operator>= | ( | const expr_type & | et | ) | const |
Return true if this expression type is greater than or equal to the specified expression type.
et | Other expression type. |
Definition at line 43 of file expr_type_def.hpp.
base_expr_type stan::lang::expr_type::type | ( | ) | const |
Return the base type of this expression type.
Definition at line 68 of file expr_type_def.hpp.
base_expr_type stan::lang::expr_type::base_type_ |
The base expression type.
Definition at line 18 of file expr_type.hpp.
std::size_t stan::lang::expr_type::num_dims_ |
The number of array dimensions.
Definition at line 23 of file expr_type.hpp.