Skip to content

Commit c4dedb9

Browse files
committed
Copy method to NumberNodeStateData
1 parent a7ff6a0 commit c4dedb9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dwave/optimization/src/nodes/numbers.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ struct NumberNodeStateData : public ArrayNodeStateData {
7272
: ArrayNodeStateData(std::move(input)),
7373
bound_axes_sums(std::move(bound_axes_sums)),
7474
prior_bound_axes_sums(this->bound_axes_sums) {}
75+
76+
std::unique_ptr<NodeStateData> copy() const override {
77+
return std::make_unique<NumberNodeStateData>(*this);
78+
}
79+
7580
/// For each bound axis and for each slice along said axis, we track the
7681
/// sum of the values within the slice.
7782
/// bound_axes_sums[i][j] = "sum of the values within the jth slice along

0 commit comments

Comments
 (0)