Skip to content

Conversation

@Akash504-ai
Copy link

@Akash504-ai Akash504-ai commented Dec 31, 2025

This PR improves the robustness and clarity of the uniform Coordinate Direction Hit-and-Run (CDHR) implementation.

Summary of changes

  • Added debug-mode assertions to guard against invalid point dimensions, coordinate indices, and line intersection intervals.
  • Documented the stateful nature of the CDHR walk, including its dependence on the previously selected direction and point.
  • Clarified assumptions regarding reuse of internal buffers used during line intersection computations.

Notes

  • No algorithmic behavior is changed.
  • Assertions are active only in debug builds and introduce no overhead in release mode.
  • The changes are limited to documentation and safety checks.

Testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve robustness and documentation of CDHR uniform random walk assumptions

1 participant