parameters: (self, other)
return_statement: return self
docstring: Add other to self in place.
docstring_summary: Add other to self in place.
docstring_tokens: Add other to self in place .
function: def __iadd__(self, other):
          "Add other to self in place."
          t = self._data.dtype.char
          f = filled(other, 0)
          t1 = f.dtype.char
          if t == t1:
              pass
          elif t in typecodes['Integer']:
              if t1 in typecodes['Integer']:
                  f = f.astype(t)
              else:
                  raise TypeError, 'Incorrect type for in-place operation.'
          elif t in typecodes['Float']:
              if t1 in typecodes['Integer']:
                  f = f.astype(t)
              elif t1 in typecodes['Float']:
                  f = f.astype(t)
              else:
                  raise TypeError, 'Incorrect type for in-place operation.'
          elif t in typecodes['Complex']:
              if t1 in typecodes['Integer']:
                  f = f.astype(t)
              elif t1 in typecodes['Float']:
                  f = f.astype(t)
              elif t1 in typecodes['Complex']:
                  f = f.astype(t)
              else:
                  raise TypeError, 'Incorrect type for in-place operation.'
          else:
              raise TypeError, 'Incorrect type for in-place operation.'
  
          if self._mask is nomask:
              self._data += f
              m = getmask(other)
              self._mask = m
              self._shared_mask = m is not nomask
          else:
              result = add(self, masked_array(f, mask=getmask(other)))
              self._data = result.data
              self._mask = result.mask
              self._shared_mask = 1
          return self
function_tokens: def __iadd__ ( self , other ) : t = self . _data . dtype . char f = filled ( other , 0 ) t1 = f . dtype . char if t == t1 : pass elif t in typecodes [ 'Integer' ] : if t1 in typecodes [ 'Integer' ] : f = f . astype ( t ) else : raise TypeError , 'Incorrect type for in-place operation.' elif t in typecodes [ 'Float' ] : if t1 in typecodes [ 'Integer' ] : f = f . astype ( t ) elif t1 in typecodes [ 'Float' ] : f = f . astype ( t ) else : raise TypeError , 'Incorrect type for in-place operation.' elif t in typecodes [ 'Complex' ] : if t1 in typecodes [ 'Integer' ] : f = f . astype ( t ) elif t1 in typecodes [ 'Float' ] : f = f . astype ( t ) elif t1 in typecodes [ 'Complex' ] : f = f . astype ( t ) else : raise TypeError , 'Incorrect type for in-place operation.' else : raise TypeError , 'Incorrect type for in-place operation.' if self . _mask is nomask : self . _data += f m = getmask ( other ) self . _mask = m self . _shared_mask = m is not nomask else : result = add ( self , masked_array ( f , mask = getmask ( other ) ) ) self . _data = result . data self . _mask = result . mask self . _shared_mask = 1 return self