def reorder_missing_vector(vector, missing, inplace=False, prefix=None):
 if (prefix is None):
  prefix = find_best_blas_type((vector,))[0]
 reorder = prefix_reorder_missing_vector_map[prefix]
 if (not inplace):
  vector = np.copy(vector, order='F')
 reorder(vector, np.asfortranarray(missing))
 return vector

def reorder_missing_vector ( vector , missing , inplace = False , prefix = None ) : if ( prefix is None ) : prefix = find_best_blas_type ( ( vector , ) ) [ 0 ] reorder = prefix_reorder_missing_vector_map [ prefix ] if ( not inplace ) : vector = np . copy ( vector , order = 'F' ) reorder ( vector , np . asfortranarray ( missing ) ) return vector
reorder the elements of a time-varying vector where all non-missing values are in the first elements of the vector .