we need an autodiff library at some point (or we need to roll our own but I do not think that makes sense). CppAD is well tested and header only and easy to include. It is also Liscene compatible with GPL v3.0. Here we bring it in as a dependency
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
# ifndef CPPAD_CORE_SPARSE_HPP
|
|
# define CPPAD_CORE_SPARSE_HPP
|
|
/* --------------------------------------------------------------------------
|
|
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
|
|
|
|
CppAD is distributed under the terms of the
|
|
Eclipse Public License Version 2.0.
|
|
|
|
This Source Code may also be made available under the following
|
|
Secondary License when the conditions for such availability set forth
|
|
in the Eclipse Public License, Version 2.0 are satisfied:
|
|
GNU General Public License, Version 2.0 or later.
|
|
---------------------------------------------------------------------------- */
|
|
|
|
//
|
|
# include <cppad/core/for_jac_sparsity.hpp>
|
|
# include <cppad/core/rev_jac_sparsity.hpp>
|
|
//
|
|
# include <cppad/core/for_hes_sparsity.hpp>
|
|
# include <cppad/core/rev_hes_sparsity.hpp>
|
|
//
|
|
# include <cppad/core/for_sparse_jac.hpp>
|
|
# include <cppad/core/rev_sparse_jac.hpp>
|
|
//
|
|
# include <cppad/core/for_sparse_hes.hpp>
|
|
# include <cppad/core/rev_sparse_hes.hpp>
|
|
//
|
|
# include <cppad/core/sparse_jac.hpp>
|
|
# include <cppad/core/sparse_hes.hpp>
|
|
//
|
|
# include <cppad/core/sparse_jacobian.hpp>
|
|
# include <cppad/core/sparse_hessian.hpp>
|
|
//
|
|
# include <cppad/core/subgraph_sparsity.hpp>
|
|
# include <cppad/core/subgraph_reverse.hpp>
|
|
# include <cppad/core/subgraph_jac_rev.hpp>
|
|
|
|
# endif
|