1 # ifndef CPPAD_SPEED_SPARSE_JAC_FUN_HPP
2 # define CPPAD_SPEED_SPARSE_JAC_FUN_HPP
174 template <
class Float,
class FloatVector>
178 const FloatVector& x ,
185 CheckNumericType<Float>();
189 "sparse_jac_fun: p != 0 and p != 1"
191 size_t K = row.
size();
194 "sparse_jac_fun: row.size() < m"
199 for(i = 0; i < m; i++)
203 for(k = 0; k < K; k++)
206 t =
exp( x[j] * x[j] / 2.0 );
void sparse_jac_fun(size_t m, size_t n, const FloatVector &x, const CppAD::vector< size_t > &row, const CppAD::vector< size_t > &col, size_t p, FloatVector &fp)
#define CPPAD_ASSERT_KNOWN(exp, msg)
Check that exp is true, if not print msg and terminate execution.
Define the CppAD error checking macros (all of which begin with CPPAD_ASSERT_)
AD< Base > exp(const AD< Base > &x)
size_t size(void) const
number of elements currently in this vector.
File used to define CppAD::vector and CppAD::vectorBool.