OptimizationVariable.pack#

abstractmethod OptimizationVariable.pack(da)[source]#

Exact inverse of unpack().

Parameters:
daDataArray

Labelled values covering this variable’s coordinates.

Returns:
np.ndarray

1-D array of length size, in flat-vector order.