'use MKL transposition to speed up'

def copy_transpose(self, a, out, axes=None, repeat=1):

    if ((axes is None) and (a._tensor.ctypes.data != out._tensor.ctypes.data) and (len(a.shape) == 2)):
        inp = c_longlong(a._tensor.ctypes.data)
        outp = c_longlong(out._tensor.ctypes.data)
        (m, n) = a.shape
        self.mklEngine.MatTrans(inp, outp, c_longlong(m), c_longlong(n))
    else:
        out._tensor[:] = np.transpose(a._tensor, axes).copy()
