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
60 lines
2.1 KiB
C++
60 lines
2.1 KiB
C++
# ifndef CPPAD_LOCAL_OP_HPP
|
|
# define CPPAD_LOCAL_OP_HPP
|
|
/* --------------------------------------------------------------------------
|
|
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-20 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.
|
|
---------------------------------------------------------------------------- */
|
|
|
|
// used by the sparse operators
|
|
# include <cppad/local/sparse/internal.hpp>
|
|
|
|
// operations
|
|
# include <cppad/core/std_math_11.hpp>
|
|
# include <cppad/local/abs_op.hpp>
|
|
# include <cppad/local/add_op.hpp>
|
|
# include <cppad/local/acos_op.hpp>
|
|
# include <cppad/local/acosh_op.hpp>
|
|
# include <cppad/local/asin_op.hpp>
|
|
# include <cppad/local/asinh_op.hpp>
|
|
# include <cppad/local/atan_op.hpp>
|
|
# include <cppad/local/atanh_op.hpp>
|
|
# include <cppad/local/comp_op.hpp>
|
|
# include <cppad/local/cond_op.hpp>
|
|
# include <cppad/local/cos_op.hpp>
|
|
# include <cppad/local/cosh_op.hpp>
|
|
# include <cppad/local/cskip_op.hpp>
|
|
# include <cppad/local/csum_op.hpp>
|
|
# include <cppad/local/discrete_op.hpp>
|
|
# include <cppad/local/div_op.hpp>
|
|
# include <cppad/local/erf_op.hpp>
|
|
# include <cppad/local/exp_op.hpp>
|
|
# include <cppad/local/expm1_op.hpp>
|
|
# include <cppad/local/load_op.hpp>
|
|
# include <cppad/local/log_op.hpp>
|
|
# include <cppad/local/log1p_op.hpp>
|
|
# include <cppad/local/mul_op.hpp>
|
|
# include <cppad/local/parameter_op.hpp>
|
|
# include <cppad/local/pow_op.hpp>
|
|
# include <cppad/local/print_op.hpp>
|
|
# include <cppad/local/sign_op.hpp>
|
|
# include <cppad/local/sin_op.hpp>
|
|
# include <cppad/local/sinh_op.hpp>
|
|
# include <cppad/local/sqrt_op.hpp>
|
|
# include <cppad/local/sub_op.hpp>
|
|
# include <cppad/local/sparse/binary_op.hpp>
|
|
# include <cppad/local/sparse/unary_op.hpp>
|
|
# include <cppad/local/store_op.hpp>
|
|
# include <cppad/local/tan_op.hpp>
|
|
# include <cppad/local/tanh_op.hpp>
|
|
# include <cppad/local/zmul_op.hpp>
|
|
|
|
|
|
# endif
|