def METHOD_NAME(self,x):
    if self.withSinCos:
        return np.vstack([ np.vstack([np.cos(qi),np.sin(qi)]) for qi in x[:self.nq] ] 
                         + [x[self.nq:]],)
    else: return x.copy()