force_Zi_asc

pyoptex.utils.design.force_Zi_asc(Zi)[source]

Force ascending groups. In other words [0, 0, 2, 1, 1, 1] is transformed to [0, 0, 1, 2, 2, 2].

Parameters

Zinp.array(1d)

The current grouping matrix

Returns

Zinp.array(1d)

The grouping matrix with ascending groups