'Return a transposed view.'

@property
def T(self):

    if (len(self.shape) <= 2):
        shape = self.shape[::(-1)]
        strides = self.strides[::(-1)]
    else:
        shape = list(self.shape[::(-1)])
        strides = list(self.strides[::(-1)])
        shape = tuple((shape[(-1):] + shape[:(-1)]))
        strides = tuple((strides[(-1):] + strides[:(-1)]))
    return self.__class__(backend=self.backend, shape=shape, dtype=self.dtype, allocator=self.allocator, base=self, gpudata=self.gpudata, strides=strides, is_trans=(not self.is_trans), name=self.name, rounding=self.rounding)
