Skip to content

neatogen: majorization integer working arrays

The majorization state, CMajEnv, contains two arrays iArray1 and iArray2. These are used as scratch space for doing intermediate calculations. This MR “demotes” them to locally scoped allocations. This makes them simpler to reason about for both humans and compilers.

(The same situation is almost certainly true for the float arrays in CMajEnv. But I have left investigation of them to a future MR.)

Merge request reports