third_party/pffft/generate_seed_corpus.py
def WriteFloat32ArrayToFile(file_path, size, generator):
  """Generate an array of float32 values and writes to file."""
  with open(file_path, 'wb') as f:
    float_array = array('f', [generator() for _ in range(size)])
    float_array.tofile(f)
Generate an array of float32 values and writes to file.
Generate an array of float32 values and writes to file.
Generate an array of float32 values and writes to file .
def WriteFloat32ArrayToFile(file_path, size, generator):
  with open(file_path, 'wb') as f:
    float_array = array('f', [generator() for _ in range(size)])
    float_array.tofile(f)
def WriteFloat32ArrayToFile ( file_path , size , generator ) : with open ( file_path , 'wb' ) as f : float_array = array ( 'f' , [ generator ( ) for _ in range ( size ) ] ) float_array . tofile ( f )
Generate an array of float32 values and writes to file.
Generate an array of float32 values and writes to file .
"""Generate an array of float32 values and writes to file."""
file_path
size
generator