<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def C_dict2array(C):
 """Convert an OrderedDict containing C values to a 1D array."""

    return np.hstack([np.asarray(C[k]).ravel() for k in C_keys])