Skip to content

Conversation

@fastbodin
Copy link
Contributor

Do not merge. Draft PR. Only C++ has been implemented. Simply checking CircleCi.

Data is stored at C++ level with the class `AxisBoundInfo` as private
attribute to `NumberNode`. Added relevant C++ tests.
For each bound axis and each hyperslice along said axis, we store the
running sum of the values within the hyperslice. This state dependant
data is stored via `NumberNodeStateData`. If `NumberNode` is initialized
with values, we check that all axis-wise bounds are satisfied.
Added satisfies_axis_wise_bounds(), update_bound_axis_slice_sums(),
axis_wise_bounds(), and bound_axis_sums() to NumberNode. Updated various
NumberNode, IntegerNode, and BinaryNode methods to reference
NumberNodeStateData as opposed to ArrayNodeStateData. Updated all
NumberNode mutate methods to reflect changes to the axis-wise bound
running sums. Added C++ tests to check said mutate methods on
BinaryNode and IntegerNode.
Make use of BufferIterators to compute the sum of the values within each
hyperslice along each bound axis as opposed making a custom method to do
this.
Defined method to initialize_state() given exactly one axis-wise bound.
Fill state with lower bounds and increment until state satisfies
axis-wise bounds or determines infeasible. Added appropriate C++
IntegerNode and BinaryNode tests.
Made BoundAxisInfo and BoundAxisOperators members of NumberNode. Updated
all C++ tests. Optimized BufferIterator use in initialize_state().
Improved comments. Improved methods. Cleaned up C++ tests.
Added static_casts where necessary for CircleCI.
@fastbodin fastbodin force-pushed the enhancement/axis_wise_bounds_numbernode branch from 31319bc to bebd145 Compare January 30, 2026 22:48
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.

1 participant