File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,21 @@ namespace stan {
1010namespace math {
1111
1212/* *
13- * Check that simplex is at least size 1
13+ * Check that size is at least 1. Used for simplexes and
14+ * other constraints that do a (size - 1) operation.
1415 *
15- * @param var_name Name of simplex variable
16+ * @param var_name Name of variable
1617 * @param expr Expression in which variable is declared
17- * @param val Size of simplex
18- * @throw std::invalid_argument if simplex size is less than 1
18+ * @param val Size to check
19+ * @throw std::invalid_argument if size is less than 1
1920 */
2021inline void validate_positive_index (const char * var_name, const char * expr,
2122 int val) {
2223 if (val < 1 ) {
2324 [&]() STAN_COLD_PATH {
2425 std::stringstream msg;
25- msg << " Found dimension size less than one in simplex declaration"
26+ msg << " Found dimension size less than one in constrained type "
27+ " declaration (simplex, sum_to_zero_vector, etc.)"
2628 << " ; variable=" << var_name << " ; dimension size expression=" << expr
2729 << " ; expression value=" << val;
2830 std::string msg_str (msg.str ());
You can’t perform that action at this time.
0 commit comments