<s> import numpy as np <EOL> def flatstr2np ( xvecstr ) : <EOL> return np . asarray ( [ float ( x ) for x in xvecstr . split ( ) ] ) <EOL> def np2flatstr ( X , fmt = "<STR_LIT>" ) : <EOL> return '<STR_LIT:U+0020>' . join ( [ fmt % ( x ) for x in np . asarray ( X ) . flatten ( ) ] ) </s>
