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}} }@)@ This is cppad-20221105 documentation. Here is a link to its current documentation .
Enabling Colpack Sparsity Calculations

Colpack Home Page
https://github.com/CSCsw/ColPack

Purpose
If you specify a colpack_prefix on the cmake command line, the CppAD sparse_jacobian and sparse_hessian calculations can use this package.

colpack_prefix
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 ,
    
colpack_prefix/dir/ColPack/ColPackHeaders.h
is a valid way to reference to the include file ColPackHeaders.h.

cppad_lib
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.

Example
The file colpack_jac.cpp (colpack_hes.cpp ) contains an example and test of using Colpack to compute the coloring for sparse Jacobians (Hessians).

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