/* $Id: multi_newton_work.hpp 2506 2012-10-24 19:36:49Z bradbell $ */
# ifndef CPPAD_MULTI_NEWTON_WORK_INCLUDED
# define CPPAD_MULTI_NEWTON_WORK_INCLUDED
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell

CppAD is distributed under multiple licenses. This distribution is under
the terms of the 
                    Eclipse Public License Version 1.0.

A copy of this license is included in the COPYING file of this distribution.
Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
-------------------------------------------------------------------------- */

# include <cppad/cppad.hpp>

extern bool multi_newton_setup(
	void (fun)(double x, double& f, double& df) ,
	size_t num_sub                              , 
	double xlow                                 ,
	double xup                                  ,
	double epsilon                              ,
	size_t max_itr                              ,
	size_t num_threads
);
extern void multi_newton_worker(void);
extern bool multi_newton_combine(CppAD::vector<double>& xout);

# endif
