parameters: (self,vector,names,output_map,output_name)
return_statement: return
docstring: Maps a partial vector to output_map[output_name].
          If output_name exists in output_map, then only the named values
          are overwritten.  Otherwise, the missing values are set to zero.
docstring_summary: Maps a partial vector to output_map[output_name].
          If output_name exists in output_map, then only the named values
          are overwritten.  Otherwise, the missing values are set to zero.
docstring_tokens: Maps a partial vector to output_map [ output_name ] . If output_name exists in output_map then only the named values are overwritten . Otherwise the missing values are set to zero .
function: def map_output(self,vector,names,output_map,output_name):
          """Maps a partial vector to output_map[output_name].
          If output_name exists in output_map, then only the named values
          are overwritten.  Otherwise, the missing values are set to zero.
          """
          val = []
          if output_name in output_map:
              val = output_map[output_name]
          else:
              val = [0.0]*len(self.state.name)
          for n,v in zip(names,vector):
              val[self.nameToIndex[n]] = v
          output_map[output_name] = val
          return
function_tokens: def map_output ( self , vector , names , output_map , output_name ) : val = [ ] if output_name in output_map : val = output_map [ output_name ] else : val = [ 0.0 ] * len ( self . state . name ) for n , v in zip ( names , vector ) : val [ self . nameToIndex [ n ] ] = v output_map [ output_name ] = val return