parameters: (self)
docstring: Tests inplace w/ array
docstring_summary: Tests inplace w/ array
docstring_tokens: Tests inplace w / array
function: def test_6(self):
          "Tests inplace w/ array"
  
          x = self.arange(10, dtype=float_)
          y = self.arange(10)
          xm = self.arange(10, dtype=float_)
          xm[2] = self.masked
          m = xm.mask
          a = self.arange(10, dtype=float_)
          a[-1] = self.masked
          x += a
          xm += a
          assert self.allequal(x, y+a)
          assert self.allequal(xm, y+a)
          assert self.allequal(xm.mask, self.mask_or(m, a.mask))
  
          x = self.arange(10, dtype=float_)
          xm = self.arange(10, dtype=float_)
          xm[2] = self.masked
          m = xm.mask
          a = self.arange(10, dtype=float_)
          a[-1] = self.masked
          x -= a
          xm -= a
          assert self.allequal(x, y-a)
          assert self.allequal(xm, y-a)
          assert self.allequal(xm.mask, self.mask_or(m, a.mask))
  
          x = self.arange(10, dtype=float_)
          xm = self.arange(10, dtype=float_)
          xm[2] = self.masked
          m = xm.mask
          a = self.arange(10, dtype=float_)
          a[-1] = self.masked
          x *= a
          xm *= a
          assert self.allequal(x, y*a)
          assert self.allequal(xm, y*a)
          assert self.allequal(xm.mask, self.mask_or(m, a.mask))
  
          x = self.arange(10, dtype=float_)
          xm = self.arange(10, dtype=float_)
          xm[2] = self.masked
          m = xm.mask
          a = self.arange(10, dtype=float_)
          a[-1] = self.masked
          x /= a
          xm /= a
function_tokens: def test_6 ( self ) : x = self . arange ( 10 , dtype = float_ ) y = self . arange ( 10 ) xm = self . arange ( 10 , dtype = float_ ) xm [ 2 ] = self . masked m = xm . mask a = self . arange ( 10 , dtype = float_ ) a [ - 1 ] = self . masked x += a xm += a assert self . allequal ( x , y + a ) assert self . allequal ( xm , y + a ) assert self . allequal ( xm . mask , self . mask_or ( m , a . mask ) ) x = self . arange ( 10 , dtype = float_ ) xm = self . arange ( 10 , dtype = float_ ) xm [ 2 ] = self . masked m = xm . mask a = self . arange ( 10 , dtype = float_ ) a [ - 1 ] = self . masked x -= a xm -= a assert self . allequal ( x , y - a ) assert self . allequal ( xm , y - a ) assert self . allequal ( xm . mask , self . mask_or ( m , a . mask ) ) x = self . arange ( 10 , dtype = float_ ) xm = self . arange ( 10 , dtype = float_ ) xm [ 2 ] = self . masked m = xm . mask a = self . arange ( 10 , dtype = float_ ) a [ - 1 ] = self . masked x *= a xm *= a assert self . allequal ( x , y * a ) assert self . allequal ( xm , y * a ) assert self . allequal ( xm . mask , self . mask_or ( m , a . mask ) ) x = self . arange ( 10 , dtype = float_ ) xm = self . arange ( 10 , dtype = float_ ) xm [ 2 ] = self . masked m = xm . mask a = self . arange ( 10 , dtype = float_ ) a [ - 1 ] = self . masked x /= a xm /= a