Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions stan/math/prim/fun/Eigen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#ifdef eigen_assert
#undef eigen_assert
#endif
#define eigen_assert(x) \
if (!(x)) { \
throw(std::domain_error("Internal Eigen Error")); \
#define eigen_assert(x) \
if (!(x)) { \
throw(std::domain_error("Internal Eigen Error: Assertion '" #x \
"' failed in " __FILE__)); \
}
#endif
#ifdef EIGEN_MATRIXBASE_PLUGIN
Expand Down