def _valarray(shape, value=np.nan, typecode=None):
 out = (np.ones(shape, dtype=bool) * value)
 if (typecode is not None):
  out = out.astype(typecode)
 if (not isinstance(out, np.ndarray)):
  out = np.asarray(out)
 return out

def _valarray ( shape , value = np . nan , typecode = None ) : out = ( np . ones ( shape , dtype = bool ) * value ) if ( typecode is not None ) : out = out . astype ( typecode ) if ( not isinstance ( out , np . ndarray ) ) : out = np . asarray ( out ) return out
return an array of all value .