parameters: ( self, index, value )
docstring: To set element i of StepVector sv to the value v, write
           sv[i] = v
        If you want to set a whole step, say, all values from i to j (not
        including j), write
           sv[i:j] = v
        Note that the StepVector class will only notice that all the values
        from i to j are equal if you assign them in this fashion. Assigning each
        item individually in a loop from i to j will result in the value v being
        stored many times.
docstring_summary: To set element i of StepVector sv to the value v, write
           sv[i] = v
        If you want to set a whole step, say, all values from i to j (not
        including j), write
           sv[i:j] = v
        Note that the StepVector class will only notice that all the values
        from i to j are equal if you assign them in this fashion. Assigning each
        item individually in a loop from i to j will result in the value v being
        stored many times.
docstring_tokens: To set element i of StepVector sv to the value v write sv [ i ] = v If you want to set a whole step say all values from i to j ( not including j ) write sv [ i : j ] = v Note that the StepVector class will only notice that all the values from i to j are equal if you assign them in this fashion . Assigning each item individually in a loop from i to j will result in the value v being stored many times .
function: def __setitem__( self, index, value ):
        """To set element i of StepVector sv to the value v, write
           sv[i] = v
        If you want to set a whole step, say, all values from i to j (not
        including j), write
           sv[i:j] = v
        Note that the StepVector class will only notice that all the values
        from i to j are equal if you assign them in this fashion. Assigning each
        item individually in a loop from i to j will result in the value v being
        stored many times.
        """
        if isinstance( value, StepVector ):
           if self._swigobj is value._swigobj and \
                 value.start == index.start and value.stop == index.stop:
              return
           else:
              raise NotImplemented, "Stepvector-to-Stepvector assignment still missing"
        if isinstance( index, slice ):
           if index.step is not None and index.step != 1:
               raise ValueError, "Striding slices (i.e., step != 1) are not supported"
           if index.start is None:
              start = self.start
           else:
              if index.start < self.start:
                 raise IndexError, "start too small"
              start = index.start
           if index.stop is None:
              stop = self.stop
           else:
              if index.stop > self.stop:
                 raise IndexError, "stop too large"
              stop = index.stop
           self._swigobj.set_value( start, stop-1, value )
  # Note the "-1": The C++ object uses closed intervals, but we follow
  # Python convention here and use half-open ones.
        else:
           self._swigobj.set_value( index, index, value )
function_tokens: def __setitem__ ( self , index , value ) : if isinstance ( value , StepVector ) : if self . _swigobj is value . _swigobj and value . start == index . start and value . stop == index . stop : return else : raise NotImplemented , "Stepvector-to-Stepvector assignment still missing" if isinstance ( index , slice ) : if index . step is not None and index . step != 1 : raise ValueError , "Striding slices (i.e., step != 1) are not supported" if index . start is None : start = self . start else : if index . start < self . start : raise IndexError , "start too small" start = index . start if index . stop is None : stop = self . stop else : if index . stop > self . stop : raise IndexError , "stop too large" stop = index . stop self . _swigobj . set_value ( start , stop - 1 , value ) # Note the "-1": The C++ object uses closed intervals, but we follow # Python convention here and use half-open ones. else : self . _swigobj . set_value ( index , index , value )