def flags(self): """Object containing memory-layout information. It only contains ``c_contiguous``, ``f_contiguous``, and ``owndata`` attributes. All of these are read-only. Accessing by indexes is also supported. .. seealso:: :attr:`numpy.ndarray.flags` """ if self._flags & flags.C_DIRTY: self._update_c_contiguity() if self._flags & flags.F_DIRTY: self._update_f_contiguity() return flags.Flags(self._flags)
def setUp(self): self.flags = flags.Flags(1, 2, 3)