calculate sparse Jacobians
Compute a sparse Jacobian.
The C++ source code corresponding to this operation is
jac = SparseJacobian(x, p)
- Template Parameters:
-
| Base | is the base type for the recording that is stored in this ADFun<Base object. |
| VectorBase | is a simple vector class with elements of type Base. |
| VectorSet | is a simple vector class with elements of type bool or std::set<size_t>. |
- Parameters:
-
| x | is a vector specifing the point at which to compute the Jacobian. |
| p | 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 606 of file sparse_jacobian.hpp.