def _update_cg(self):
beta = self._beta()<EOL>if beta < <NUM_LIT:0>:<EOL><INDENT>self.direction = -self.gradient<EOL>self.status = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>self.direction = self.direction * beta - self.gradient<EOL>self.status = "<STR_LIT>"<EOL><DEDENT>
Update the conjugate gradient