Skip to content

Commit

Permalink
better debug helper
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagler committed Mar 9, 2024
1 parent 34d49c5 commit 29f4b91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ check_if_in_unit_cube(const Eigen::MatrixXd& u)
{
bool any_outside = (u.array() < 0.0).any() || (u.array() > 1.0).any();
if (any_outside) {
std::cout << u.cols() << std::endl;
std::cout << u.cols() << ", " << u.minCoeff() << ", " << u.maxCoeff() << std::endl;
throw std::runtime_error("all data must be contained in [0, 1]^d.");
}
return !any_outside;
Expand Down

0 comments on commit 29f4b91

Please sign in to comment.