/dports/math/cppad/CppAD-20210000.8/test_more/general/ |
H A D | ode_err_control.cpp | 72 using CppAD::NearEqual; in OdeErrControl_one() 89 CppAD::vector<double> xi(n); in OdeErrControl_one() 99 CppAD::vector<double> ef(n); in OdeErrControl_one() 100 CppAD::vector<double> xf(n); in OdeErrControl_one() 137 CppAD::vector<double> w; 176 using CppAD::NearEqual; in OdeErrControl_two() 178 CppAD::vector<double> w(2); in OdeErrControl_two() 183 CppAD::vector<double> xi(2); in OdeErrControl_two() 200 CppAD::vector<double> ef(2); in OdeErrControl_two() 201 CppAD::vector<double> xf(2); in OdeErrControl_two() [all …]
|
H A D | optimize.cpp | 339 const CppAD::vector< CppAD::AD<double> >& y, in Ode() 473 const CppAD::vector< CppAD::AD<double> >& ax , in j_algo() 474 CppAD::vector< CppAD::AD<double> >& ay ) in j_algo() 531 const CppAD::vector< CppAD::AD<double> >& x , in k_algo() 532 CppAD::vector< CppAD::AD<double> >& y ) in k_algo() 536 const CppAD::vector< CppAD::AD<double> >& x , in h_algo() 537 CppAD::vector< CppAD::AD<double> >& y ) in h_algo() 612 const CppAD::vector< CppAD::AD<double> >& ax , in g_algo() 613 CppAD::vector< CppAD::AD<double> >& ay ) in g_algo() 2009 const CppAD::vector< CppAD::AD<double> >& ax , in i_algo() [all …]
|
H A D | chkpoint_two.cpp | 42 const CppAD::vector< CppAD::AD<double> >& ax , in j_algo() 43 CppAD::vector< CppAD::AD<double> >& ay ) in j_algo() 95 const CppAD::vector< CppAD::AD<double> >& x , in k_algo() 96 CppAD::vector< CppAD::AD<double> >& y ) in k_algo() 100 const CppAD::vector< CppAD::AD<double> >& x , in h_algo() 101 CppAD::vector< CppAD::AD<double> >& y ) in h_algo() 173 const CppAD::vector< CppAD::AD<double> >& ax , in g_algo() 174 CppAD::vector< CppAD::AD<double> >& ay ) in g_algo() 272 const CppAD::vector< CppAD::AD<double> >& ax , in i_algo() 273 CppAD::vector< CppAD::AD<double> >& ay ) in i_algo() [all …]
|
H A D | json_graph.cpp | 18 using CppAD::vector; in comp_op_dyn_dyn() 19 using CppAD::AD; in comp_op_dyn_dyn() 126 using CppAD::AD; in comp_op_var_var() 492 double check = CppAD::acosh(p[0]) + CppAD::acosh(x[0]) + CppAD::acosh(c[0]); in acosh_op() 568 double check = CppAD::log1p(p[0]) + CppAD::log1p(x[0]) + CppAD::log1p(c[0]); in log1p_op() 644 double check = CppAD::expm1(p[0]) + CppAD::expm1(x[0]) + CppAD::expm1(c[0]); in expm1_op() 720 double check = CppAD::erfc(p[0]) + CppAD::erfc(x[0]) + CppAD::erfc(c[0]); in erfc_op() 796 double check = CppAD::erf(p[0]) + CppAD::erf(x[0]) + CppAD::erf(c[0]); in erf_op() 872 double check = CppAD::atanh(p[0]) + CppAD::atanh(x[0]) + CppAD::atanh(c[0]); in atanh_op() 948 double check = CppAD::asinh(p[0]) + CppAD::asinh(x[0]) + CppAD::asinh(c[0]); in asinh_op() [all …]
|
H A D | adfun.cpp | 25 size_t thread = CppAD::thread_alloc::thread_num(); in adfun_empty() 29 CPPAD_TESTVECTOR( CppAD::AD<double> ) ax(1), ay(1); in adfun_empty() 33 CppAD::ADFun<double> f; in adfun_empty() 38 CppAD::Independent(ax); in adfun_empty() 40 CppAD::ADFun<double> g(ax, ay); in adfun_empty() 52 g = CppAD::ADFun<double>(); in adfun_empty() 63 CPPAD_TESTVECTOR( CppAD::AD<double> ) ax(1); in adfun_swap() 64 CppAD::Independent(ax); in adfun_swap() 67 CPPAD_TESTVECTOR( CppAD::AD<double> ) ay(2); in adfun_swap() 72 CppAD::ADFun<double> f(ax, ay); in adfun_swap() [all …]
|
H A D | sparse_jacobian.cpp | 22 using CppAD::AD; in rc_tridiagonal() 110 using CppAD::AD; in rc_set() 190 using CppAD::AD; in rc_bool() 270 using CppAD::AD; in reverse_bool() 332 using CppAD::AD; in reverse_set() 390 using CppAD::AD; in forward_bool() 455 using CppAD::AD; in forward_set() 515 using CppAD::AD; in multiple_of_n_bit() 560 const CppAD::vector < CppAD::AD<double> >& ax , in algo_sparse_list_bug() 561 CppAD::vector < CppAD::AD<double> >& ay ) in algo_sparse_list_bug() [all …]
|
H A D | azmul.cpp | 20 using CppAD::AD; in test_forward() 21 using CppAD::NearEqual; in test_forward() 41 CppAD::Independent(a1x); in test_forward() 47 CppAD::Independent(a2x); in test_forward() 68 CppAD::ADFun<double> g; in test_forward() 96 using CppAD::AD; in test_reverse() 97 using CppAD::NearEqual; in test_reverse() 117 CppAD::Independent(a1x); in test_reverse() 141 CppAD::ADFun<double> g; in test_reverse() 169 using CppAD::AD; in test_forward_dir() [all …]
|
/dports/math/cppad/CppAD-20210000.8/include/cppad/example/ |
H A D | cppad_eigen.hpp | 77 namespace CppAD { namespace 91 typedef CppAD::AD<Base> Real; 95 typedef CppAD::AD<Base> Literal; 97 typedef CppAD::AD<Base> Nested; 117 { return CppAD::numeric_limits< CppAD::AD<Base> >::epsilon(); } in epsilon() 123 CppAD::numeric_limits< CppAD::AD<Base> >::epsilon(); in dummy_precision() 128 { return CppAD::numeric_limits< CppAD::AD<Base> >::min(); } in lowest() 132 { return CppAD::numeric_limits< CppAD::AD<Base> >::max(); } in highest() 136 { return CppAD::numeric_limits< CppAD::AD<Base> >::digits10; } in digits10() 144 namespace CppAD { namespace [all …]
|
H A D | code_gen_fun.hpp | 23 std::unique_ptr< CppAD::cg::DynamicLib<double> > dynamic_lib_; 26 std::unique_ptr< CppAD::cg::GenericModel<double> > model_; 41 CppAD::ADFun< CppAD::cg::CG<double> >& cg_fun , 51 CppAD::vector<double> operator()(const CppAD::vector<double> & x); 54 CppAD::vector<double> jacobian(const CppAD::vector<double> & x); 57 CppAD::sparse_rcv< CppAD::vector<size_t>, CppAD::vector<double> > 58 sparse_jacobian(const CppAD::vector<double>& x);
|
/dports/math/SCIP/scip-7.0.3/src/nlpi/ |
H A D | exprinterpret_cppad.cpp | 63 namespace CppAD namespace 67 using CppAD::SCIPInterval; 164 enum CppAD::CompareOp cop, in CondExpOp() 308 using CppAD::AD; 989 ty[1] = CppAD::pow(CppAD::abs(tx[0]), exponent - 1.0) * tx[1]; in forward() 997 ty[2] = CppAD::signpow(tx[0], exponent - 2.0) * CppAD::square(tx[1]); in forward() 999 ty[2] += CppAD::pow(CppAD::abs(tx[0]), exponent - 1.0) * tx[2]; in forward() 1005 ty[2] = CppAD::sign(tx[0]) * CppAD::square(tx[1]); in forward() 1038 px[0] = py[0] * CppAD::pow(CppAD::abs(tx[0]), exponent - 1.0); in reverse() 1048 px[0] += py[0] * CppAD::pow(CppAD::abs(tx[0]), exponent - 1.0); in reverse() [all …]
|
/dports/math/cppad/CppAD-20210000.8/cppad_lib/ |
H A D | code_gen_fun.cpp | 243 CppAD::ADFun< CppAD::cg::CG<double> >& cg_fun , in code_gen_fun() 260 CppAD::cg::ModelLibraryCSourceGen<double> libcgen(cgen); in code_gen_fun() 264 CppAD::cg::ClangCompiler<double> compiler; in code_gen_fun() 282 CppAD::cg::DynamicLib<double>* ptr = in code_gen_fun() 309 CppAD::vector<double> 310 code_gen_fun::operator()(const CppAD::vector<double>& x) in operator ()() 318 CppAD::vector<double> 319 code_gen_fun::jacobian(const CppAD::vector<double>& x) in jacobian() 330 CppAD::sparse_rcv< CppAD::vector<size_t>, CppAD::vector<double> > 354 CppAD::sparse_rc< CppAD::vector<size_t> > pattern(nr, nc, nnz); in sparse_jacobian() [all …]
|
/dports/math/cppad/CppAD-20210000.8/example/utility/ |
H A D | ode_err_maxabs.cpp | 59 CppAD::vector<double> w; 68 const CppAD::vector<double> &x, in Ode() 86 CppAD::vector<double> &xa , in step() 87 CppAD::vector<double> &xb , in step() 88 CppAD::vector<double> &eb ) in step() 99 CppAD::vector<double> w(2); in OdeErrMaxabs() 104 CppAD::vector<double> xi(2); in OdeErrMaxabs() 108 CppAD::vector<double> eabs(2); in OdeErrMaxabs() 112 CppAD::vector<double> ef(2); in OdeErrMaxabs() 113 CppAD::vector<double> xf(2); in OdeErrMaxabs() [all …]
|
H A D | ode_err_control.cpp | 76 const CppAD::vector<double> &x, in Ode() 77 CppAD::vector<double> &f) in Ode() 98 CppAD::vector<double> &xa , in step() 99 CppAD::vector<double> &xb , in step() 100 CppAD::vector<double> &eb ) in step() 114 CppAD::vector<double> xi(2); in OdeErrControl() 118 CppAD::vector<double> eabs(2); in OdeErrControl() 131 CppAD::vector<double> ef(2); in OdeErrControl() 132 CppAD::vector<double> xf(2); in OdeErrControl() 133 CppAD::vector<double> maxabs(2); in OdeErrControl() [all …]
|
/dports/math/cppad/CppAD-20210000.8/include/cppad/example/atomic_two/ |
H A D | eigen_mat_mul.hpp | 127 typedef CppAD::AD<scalar> ad_scalar; 140 CppAD::atomic_base<Base>::set_sparsity_enum in atomic_eigen_mat_mul() 195 CppAD::vector<matrix> f_left_, f_right_, f_result_; 209 const CppAD::vector<bool>& vx , in forward() 211 CppAD::vector<bool>& vy , in forward() 213 const CppAD::vector<scalar>& tx , in forward() 215 CppAD::vector<scalar>& ty in forward() 319 const CppAD::vector<double>& tx , in reverse() 321 const CppAD::vector<double>& ty , in reverse() 323 CppAD::vector<double>& px , in reverse() [all …]
|
/dports/math/cppad/CppAD-20210000.8/omh/appendix/deprecated/ |
H A D | include_deprecated.omh | 4 CppAD is distributed under the terms of the 19 CppAD 50 # include <CppAD/CppAD.h> 72 CppAD/CppAD.h $pre $$ $cnext cppad/cppad.hpp 73 $pre $$ $cnext $cref CppAD$$ 76 CppAD/CppAD_vector.h $pre $$ $cnext cppad/vector.hpp 84 CppAD/LuFactor.h $pre $$ $cnext cppad/lu_factor.hpp 92 CppAD/LuSolve.h $pre $$ $cnext cppad/lu_solve.hpp 104 CppAD/OdeGear.h $pre $$ $cnext cppad/ode_gear.hpp 112 CppAD/Poly.h $pre $$ $cnext cppad/poly.hpp [all …]
|
/dports/math/cppad/CppAD-20210000.8/include/cppad/local/ |
H A D | ad_tape.hpp | 40 friend void CppAD::PrintFor <Base> ( 55 friend AD<Base> CppAD::pow <Base> 58 friend AD<Base> CppAD::azmul <Base> 61 friend bool CppAD::Parameter <Base> 64 friend bool CppAD::Variable <Base> 90 friend bool CppAD::operator == <Base> 92 friend bool CppAD::operator != <Base> 95 friend bool CppAD::operator < <Base> 97 friend bool CppAD::operator <= <Base> 99 friend bool CppAD::operator > <Base> [all …]
|
/dports/math/SCIP/scip-7.0.3/src/cppad/local/ |
H A D | ad_tape.hpp | 39 friend void CppAD::PrintFor <Base> ( 54 friend AD<Base> CppAD::pow <Base> 57 friend AD<Base> CppAD::azmul <Base> 60 friend bool CppAD::Parameter <Base> 63 friend bool CppAD::Variable <Base> 83 friend bool CppAD::operator < <Base> 85 friend bool CppAD::operator <= <Base> 87 friend bool CppAD::operator > <Base> 89 friend bool CppAD::operator >= <Base> 98 friend bool CppAD::operator == <Base> [all …]
|
/dports/math/cppad/CppAD-20210000.8/speed/cppad/ |
H A D | det_minor.cpp | 46 typedef CppAD::AD<double> a_double; 47 typedef CppAD::vector<a_double> a_vector; 54 CppAD::ADFun<double>& f ) in setup() 63 CppAD::vector<double> matrix(nx); in setup() 64 CppAD::uniform_01(nx, matrix); in setup() 98 CppAD::vector<double> &matrix , in link_det_minor() 99 CppAD::vector<double> &gradient ) in link_det_minor() 120 static CppAD::ADFun<double> static_f; in link_det_minor() 129 CppAD::vector<double> w(1); in link_det_minor() 146 { static_f = CppAD::ADFun<double>(); in link_det_minor() [all …]
|
H A D | poly.cpp | 60 CppAD::vector<double> &z , // polynomial argument value in link_poly() 85 typedef CppAD::AD<double> ADScalar; in link_poly() 86 typedef CppAD::vector<ADScalar> ADVector; in link_poly() 95 CppAD::uniform_01(size, a); in link_poly() 103 CppAD::vector<double> p(1), dp(1), dz(1), ddz(1); in link_poly() 108 CppAD::ADFun<double> f; in link_poly() 118 CppAD::uniform_01(1, z); in link_poly() 125 P[0] = CppAD::Poly(0, A, Z[0]); in link_poly() 152 CppAD::uniform_01(1, z); in link_poly() 159 P[0] = CppAD::Poly(0, A, Z[0]); in link_poly() [all …]
|
H A D | sparse_jacobian.cpp | 52 using CppAD::vector; 63 CppAD::sparse_rc<s_vector>& pattern , in calc_sparsity() 64 CppAD::ADFun<double>& f ) in calc_sparsity() 87 CppAD::sparse_rc<s_vector> identity; in calc_sparsity() 113 CppAD::ADFun<double>& f , in setup() 115 CppAD::sparse_jac_work& work ) in setup() 133 CppAD::uniform_01(nc, x); in setup() 200 const CppAD::vector<size_t>& row , in link_sparse_jacobian() 239 static CppAD::ADFun<double> static_f; in link_sparse_jacobian() 245 static CppAD::sparse_jac_work static_work; in link_sparse_jacobian() [all …]
|
/dports/math/cppad/CppAD-20210000.8/example/general/ |
H A D | base_alloc.hpp | 184 namespace CppAD { namespace 203 namespace CppAD { namespace 215 namespace CppAD { namespace 224 namespace CppAD { namespace 238 namespace CppAD { namespace 248 namespace CppAD { namespace 256 namespace CppAD { namespace 264 namespace CppAD { namespace 292 namespace CppAD { namespace 319 namespace CppAD { namespace [all …]
|
/dports/math/cppad/CppAD-20210000.8/speed/cppadcg/ |
H A D | sparse_jacobian.cpp | 52 typedef CppAD::cg::CG<double> c_double; 53 typedef CppAD::AD<c_double> ac_double; 58 typedef CppAD::sparse_rc<s_vector> sparsity; 63 CppAD::sparse_rc<s_vector>& pattern , in calc_sparsity() 64 CppAD::ADFun<c_double>& f ) in calc_sparsity() 142 CppAD::ADFun<c_double> c_f; in setup() 157 CppAD::uniform_01(nc, x); in setup() 207 CppAD::sparse_jac_work work; in setup() 215 CppAD::ADFun<c_double> c_g; in setup() 318 CppAD::uniform_01(nx, x); in link_sparse_jacobian() [all …]
|
H A D | det_minor.cpp | 51 typedef CppAD::cg::CG<double> c_double; 52 typedef CppAD::AD<c_double> ac_double; 53 typedef CppAD::vector<double> d_vector; 73 CppAD::vector<double> matrix(nx); in setup() 74 CppAD::uniform_01(nx, matrix); in setup() 108 CppAD::vector<ac_double> ac_w(1); in setup() 117 CppAD::ADFun<c_double> c_g; in setup() 132 CppAD::vector<double> &matrix , in link_det_minor() 133 CppAD::vector<double> &gradient ) in link_det_minor() 189 CppAD::uniform_01(nx, matrix); in link_det_minor() [all …]
|
/dports/math/cppad/CppAD-20210000.8/speed/src/ |
H A D | link_det_minor.cpp | 22 CppAD::vector<double>& matrix , 23 CppAD::vector<double>& gradient 84 CppAD::vector<double> matrix(size * size); in time_det_minor_callback() 96 CppAD::vector<double> matrix(size * size); in available_det_minor() 97 CppAD::vector<double> gradient(size * size); in available_det_minor() 112 CppAD::vector<double> matrix(size * size); in correct_det_minor() 113 CppAD::vector<double> gradient(size * size); in correct_det_minor() 123 ok = CppAD::det_33(matrix, gradient); in correct_det_minor() 125 ok = CppAD::det_grad_33(matrix, gradient); in correct_det_minor() 135 CppAD::vector<double> matrix(size * size); in time_det_minor() [all …]
|
/dports/math/cppad/CppAD-20210000.8/example/code_gen_fun/ |
H A D | sparse_jacobian.cpp | 31 typedef CppAD::cg::CG<double> c_double; in sparse_jacobian() 32 typedef CppAD::AD<c_double> ac_double; in sparse_jacobian() 34 typedef CppAD::vector<double> d_vector; in sparse_jacobian() 35 typedef CppAD::vector<ac_double> ac_vector; in sparse_jacobian() 46 CppAD::Independent(ac_x); in sparse_jacobian() 55 CppAD::ADFun<c_double> c_f(ac_x, ac_y); in sparse_jacobian() 66 CppAD::sparse_rcv< CppAD::vector<size_t>, CppAD::vector<double> > Jrcv; in sparse_jacobian() 73 const CppAD::vector<size_t>& row( Jrcv.row() ); in sparse_jacobian() 74 const CppAD::vector<size_t>& col( Jrcv.col() ); in sparse_jacobian() 75 const CppAD::vector<double>& val( Jrcv.val() ); in sparse_jacobian() [all …]
|