Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/s/c/scipy-0.13.3/scipy/optimize/_trustregion_ncg.py   scipy(Download)
 
            # do an iteration
            Bd = self.hessp(d)
            dBd = np.dot(d, Bd)
            if dBd <= 0:

src/s/c/scipy-0.13.3/scipy/optimize/_trustregion_dogleg.py   scipy(Download)
        if self._cauchy_point is None:
            g = self.jac
            Bg = self.hessp(g)
            self._cauchy_point = -(np.dot(g, g) / np.dot(g, Bg)) * g
        return self._cauchy_point