def copy_missing_vector(a, b, missing, inplace=False, prefix=None):
 if (prefix is None):
  prefix = find_best_blas_type((a, b))[0]
 copy = prefix_copy_missing_vector_map[prefix]
 if (not inplace):
  b = np.copy(b, order='F')
 try:
  if (not a.is_f_contig()):
   raise ValueError()
 except:
  a = np.asfortranarray(a)
 copy(a, b, np.asfortranarray(missing))
 return b

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