vectors of shape (n,) in minres + cg fix