Prev Next

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@
Including the ColPack Sparsity Calculations

If you specify a colpack_prefix on the cmake command line, the CppAD sparse_jacobian calculations use the ColPack package.

If ColPack is installed on your system, you can specify a value for its install colpack_prefix on the cmake command line. The value of colpack_prefix must be such that, for one of the directories dir in cmake_install_includedirs ,
is a valid way to reference to the include file ColPackHeaders.h.

The ColPack header files has a
     using namespace std
at the global level. For this reason, CppAD does not include these files. It is therefore necessary to link the object library cppad_lib when using ColPack.

The file colpack_jac.cpp (colpack_hes.cpp ) contains an example and test of using ColPack to compute the coloring for sparse Jacobians (Hessians). It returns true, if it succeeds and false otherwise.

If you are using Unix, you can download and install a copy of ColPack using . The corresponding colpack_prefix would be build/prefix.
Input File: omh/install/colpack_prefix.omh