CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
template<class VectorBase , class VectorSet >
VectorBase CppAD::ADFun< Base >::SparseJacobian ( const VectorBase &  x,
const VectorSet &  p 
)

Compute a sparse Jacobian.

The C++ source code corresponding to this operation is

     jac = SparseJacobian(x, p)
Template Parameters
Baseis the base type for the recording that is stored in this ADFun<Base> object.
VectorBaseis a simple vector class with elements of type Base.
VectorSetis a simple vector class with elements of type bool or std::set<size_t>.
Parameters
x[in] is a vector specifing the point at which to compute the Jacobian.
p[in] is the sparsity pattern for the Jacobian that we are calculating.
Returns
Will be a vector if size m * n containing the Jacobian at the specified point (in row major order).

Definition at line 933 of file sparse_jacobian.hpp.