Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into 5.0-breaking-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Apr 18, 2024
2 parents 6a87593 + 11663a2 commit 7881af5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stan/math/prim/err/check_matching_dims.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ inline void check_matching_dims(const char* function, const char* name1,
[&]() STAN_COLD_PATH {
std::ostringstream y1_err;
std::ostringstream msg_str;
y1_err << "(" << y1.rows() << ", " << y1.cols() << ")";
msg_str << y2.rows() << ", " << y2.cols() << ") must match in size";
invalid_argument(function, name1, y1_err.str(), "(",
y1_err << "(" << y1.rows() << ", " << y1.cols() << ") and ";
msg_str << " (" << y2.rows() << ", " << y2.cols()
<< ") must match in size";
invalid_argument(function, name1, name2,
std::string(y1_err.str()).c_str(),
std::string(msg_str.str()).c_str());
}();
}
Expand Down

0 comments on commit 7881af5

Please sign in to comment.