code: def round(self, eps=1e-14, rmax=1000000):
          
          c = vector()
          c.n = _np.copy(self.n)
          c.d = self.d
          c.r = _np.copy(self.r)
          c.ps = _np.copy(self.ps)
          if (_np.iscomplex(self.core).any()):
              _tt_f90.tt_f90.ztt_compr2(c.n, c.r, c.ps, self.core, eps, rmax)
              c.core = _tt_f90.tt_f90.zcore.copy()
          else:
              _tt_f90.tt_f90.dtt_compr2(c.n, c.r, c.ps, self.core, eps, rmax)
              c.core = _tt_f90.tt_f90.core.copy()
          _tt_f90.tt_f90.tt_dealloc()
          return c
docs: Applies TT rounding procedure to the TT-vector and **returns rounded tensor**.
  
          :param eps: Rounding accuracy.
          :type eps: float
          :param rmax: Maximal rank
          :type rmax: int
          :returns: tensor -- rounded TT-vector.
  
          Usage example:
  
          >>> a = tt.ones(2, 10)
          >>> b = a + a
          >>> print b.r
          array([1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1], dtype=int32)
          >>> b = b.round(1E-14)
          >>> print b.r
          array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], dtype=int32)