Skip to content

Commit

Permalink
debug helper
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagler committed Mar 9, 2024
1 parent ec9f9eb commit 34d49c5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +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;
throw std::runtime_error("all data must be contained in [0, 1]^d.");
}
return !any_outside;
Expand Down

0 comments on commit 34d49c5

Please sign in to comment.