parameters: (self, y, t=0.0)
return_statement: return ode.set_initial_value(self, self.tmp, t)
docstring: Set initial conditions y(t) = y.
docstring_summary: Set initial conditions y(t) = y.
docstring_tokens: Set initial conditions y ( t ) = y .
function: def set_initial_value(self, y, t=0.0):
          """Set initial conditions y(t) = y."""
          y = asarray(y)
          self.tmp = zeros(y.size * 2, 'float')
          self.tmp[::2] = real(y)
          self.tmp[1::2] = imag(y)
          return ode.set_initial_value(self, self.tmp, t)
function_tokens: def set_initial_value ( self , y , t = 0.0 ) : y = asarray ( y ) self . tmp = zeros ( y . size * 2 , 'float' ) self . tmp [ : : 2 ] = real ( y ) self . tmp [ 1 : : 2 ] = imag ( y ) return ode . set_initial_value ( self , self . tmp , t )