allow (n,) vectors in cg