Changeset 1537


Ignore:
Timestamp:
Sep 30, 2009 11:52:53 PM (11 years ago)
Author:
bradbell
Message:

trunk: Add a sparse Jacobian speed test.

not_available.sh: automatically creates test that returns not available flag.
link_sparse_jacobian.cpp: directions for adding this to other package tests.
*/sparse_jacobian.cpp: versions that return test not available flag.
cppad/sparse_jacobian.cpp: actually does the test for CppAD package.

omh/speed_*.omh: include the corresponding sparse Jacobian test.
whats_new_09.omh: user's view of the changes.
for_sparse_jac.hpp: fix typo in doxygen documentation.
sparse_evaluate.hpp: fix error in user documentation.
*/makefile.in: automatic changes transferred from corresponding makeifle.am.
*/makefile.am: include corresponding sparse_jacobian.cpp.
link_sparse_hessian.hpp: fix error in user documentation.
main.cpp: add sparse_jacobian test case.
sparse_hessian.cpp: add a comment.

Location:
trunk
Files:
7 added
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/cppad/local/for_sparse_jac.hpp

    r1536 r1537  
    202202corresponding to the operation sequence stored in \a play.
    203203The input value of its elements does not matter.
    204 On output, the \a s is the sparsity pattern for the matrix
     204On output, \a s is the sparsity pattern for the matrix
    205205\f[
    206206        J(x) = F^{(1)} (x) * R
  • trunk/cppad/speed/sparse_evaluate.hpp

    r1369 r1537  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
     
    4343The function $latex f : \R^n \rightarrow \R$$ depends on the
    4444index vectors $icode i$$ and $icode j$$.
    45 The only non-zero entries in the Hessian of this function have the form
    46 \[
    47         \DD{f}{x[k]]}{x[j[k]}
    48 \]
     45The non-zero entries in the Hessian of this function have
     46one of the following forms:
     47$latex \[
     48        \DD{f}{x[i[k]]}{x[i[k]]}
     49        \; , \;
     50        \DD{f}{x[i[k]]}{x[j[k]]}
     51        \; , \;
     52        \DD{f}{x[j[k]]}{x[i[k]]}
     53        \; , \;
     54        \DD{f}{x[j[k]]}{x[j[k]]}
     55\] $$
    4956for some \( k \) between zero and \( \ell-1 \).
     57All the other terms of the Hessian are zero.
    5058
    5159$head Inclusion$$
  • trunk/omh/speed_adolc.omh

    r1370 r1537  
    11$Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    6565        speed/adolc/ode.cpp%
    6666        speed/adolc/poly.cpp%
    67         speed/adolc/sparse_hessian.cpp
     67        speed/adolc/sparse_hessian.cpp%
     68        speed/adolc/sparse_jacobian.cpp
    6869%$$
    6970
  • trunk/omh/speed_cppad.omh

    r1370 r1537  
    11$Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    7171        speed/cppad/ode.cpp%
    7272        speed/cppad/poly.cpp%
    73         speed/cppad/sparse_hessian.cpp
     73        speed/cppad/sparse_hessian.cpp%
     74        speed/cppad/sparse_jacobian.cpp
    7475%$$
    7576
  • trunk/omh/speed_double.omh

    r1370 r1537  
    11$Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    6969        speed/double/ode.cpp%
    7070        speed/double/poly.cpp%
    71         speed/double/sparse_hessian.cpp
     71        speed/double/sparse_hessian.cpp%
     72        speed/double/sparse_jacobian.cpp
    7273%$$
    7374
  • trunk/omh/speed_fadbad.omh

    r1370 r1537  
    11$Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    6363        speed/fadbad/ode.cpp%
    6464        speed/fadbad/poly.cpp%
    65         speed/fadbad/sparse_hessian.cpp
     65        speed/fadbad/sparse_hessian.cpp%
     66        speed/fadbad/sparse_jacobian.cpp
    6667%$$
    6768
  • trunk/omh/speed_sacado.omh

    r1370 r1537  
    11$Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    6666        speed/sacado/ode.cpp%
    6767        speed/sacado/poly.cpp%
    68         speed/sacado/sparse_hessian.cpp
     68        speed/sacado/sparse_hessian.cpp%
     69        speed/sacado/sparse_jacobian.cpp
    6970%$$
    7071
  • trunk/omh/whats_new_09.omh

    r1535 r1537  
    5656trying to read and understand the CppAD source code.)
    5757
     58$head 09-30$$
     59Added the $cref/cppad_sparse_jacobian.cpp/$$ speed test
     60and increased the sizes used by $cref/link_sparse_hessian/$$.
     61Some mistakes were fixed in the documentation for speed tests
     62$cref/link_sparse_hessian/$$ and $cref/sparse_evaluate/$$.
     63
    5864$head 09-29$$
    5965The documentation definition of the function $latex H(x)$$ in
  • trunk/speed/adolc/makefile.am

    r1369 r1537  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    4545        ../link_poly.cpp \
    4646        ../link_sparse_hessian.cpp \
     47        ../link_sparse_jacobian.cpp \
    4748        det_lu.cpp \
    4849        det_minor.cpp \
    4950        poly.cpp \
    50         sparse_hessian.cpp
     51        sparse_hessian.cpp \
     52        sparse_jacobian.cpp
  • trunk/speed/adolc/makefile.in

    r1401 r1537  
    4848        link_det_lu.$(OBJEXT) link_det_minor.$(OBJEXT) \
    4949        link_poly.$(OBJEXT) link_sparse_hessian.$(OBJEXT) \
    50         det_lu.$(OBJEXT) det_minor.$(OBJEXT) poly.$(OBJEXT) \
    51         sparse_hessian.$(OBJEXT)
     50        link_sparse_jacobian.$(OBJEXT) det_lu.$(OBJEXT) \
     51        det_minor.$(OBJEXT) poly.$(OBJEXT) sparse_hessian.$(OBJEXT) \
     52        sparse_jacobian.$(OBJEXT)
    5253adolc_OBJECTS = $(am_adolc_OBJECTS)
    5354adolc_LDADD = $(LDADD)
     
    210211        ../link_poly.cpp \
    211212        ../link_sparse_hessian.cpp \
     213        ../link_sparse_jacobian.cpp \
    212214        det_lu.cpp \
    213215        det_minor.cpp \
    214216        poly.cpp \
    215         sparse_hessian.cpp
     217        sparse_hessian.cpp \
     218        sparse_jacobian.cpp
    216219
    217220all: all-am
     
    269272@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_poly.Po@am__quote@
    270273@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_hessian.Po@am__quote@
     274@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_jacobian.Po@am__quote@
    271275@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
    272276@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ode.Po@am__quote@
    273277@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poly.Po@am__quote@
    274278@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_hessian.Po@am__quote@
     279@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_jacobian.Po@am__quote@
    275280
    276281.cpp.o:
     
    371376@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    372377@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_hessian.obj `if test -f '../link_sparse_hessian.cpp'; then $(CYGPATH_W) '../link_sparse_hessian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_hessian.cpp'; fi`
     378
     379link_sparse_jacobian.o: ../link_sparse_jacobian.cpp
     380@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.o -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     381@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     382@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.o' libtool=no @AMDEPBACKSLASH@
     383@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     384@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     385
     386link_sparse_jacobian.obj: ../link_sparse_jacobian.cpp
     387@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.obj -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
     388@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     389@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.obj' libtool=no @AMDEPBACKSLASH@
     390@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     391@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
    373392
    374393ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  • trunk/speed/cppad/makefile.am

    r1369 r1537  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    4444        ../link_poly.cpp \
    4545        ../link_sparse_hessian.cpp \
     46        ../link_sparse_jacobian.cpp \
    4647        det_lu.cpp  \
    4748        det_minor.cpp \
    4849        poly.cpp \
    49         sparse_hessian.cpp
     50        sparse_hessian.cpp \
     51        sparse_jacobian.cpp
  • trunk/speed/cppad/makefile.in

    r1401 r1537  
    4848        link_det_lu.$(OBJEXT) link_det_minor.$(OBJEXT) \
    4949        link_poly.$(OBJEXT) link_sparse_hessian.$(OBJEXT) \
    50         det_lu.$(OBJEXT) det_minor.$(OBJEXT) poly.$(OBJEXT) \
    51         sparse_hessian.$(OBJEXT)
     50        link_sparse_jacobian.$(OBJEXT) det_lu.$(OBJEXT) \
     51        det_minor.$(OBJEXT) poly.$(OBJEXT) sparse_hessian.$(OBJEXT) \
     52        sparse_jacobian.$(OBJEXT)
    5253cppad_OBJECTS = $(am_cppad_OBJECTS)
    5354cppad_LDADD = $(LDADD)
     
    208209        ../link_poly.cpp \
    209210        ../link_sparse_hessian.cpp \
     211        ../link_sparse_jacobian.cpp \
    210212        det_lu.cpp  \
    211213        det_minor.cpp \
    212214        poly.cpp \
    213         sparse_hessian.cpp
     215        sparse_hessian.cpp \
     216        sparse_jacobian.cpp
    214217
    215218all: all-am
     
    267270@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_poly.Po@am__quote@
    268271@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_hessian.Po@am__quote@
     272@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_jacobian.Po@am__quote@
    269273@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
    270274@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ode.Po@am__quote@
    271275@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poly.Po@am__quote@
    272276@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_hessian.Po@am__quote@
     277@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_jacobian.Po@am__quote@
    273278
    274279.cpp.o:
     
    369374@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    370375@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_hessian.obj `if test -f '../link_sparse_hessian.cpp'; then $(CYGPATH_W) '../link_sparse_hessian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_hessian.cpp'; fi`
     376
     377link_sparse_jacobian.o: ../link_sparse_jacobian.cpp
     378@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.o -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     379@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     380@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.o' libtool=no @AMDEPBACKSLASH@
     381@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     382@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     383
     384link_sparse_jacobian.obj: ../link_sparse_jacobian.cpp
     385@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.obj -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
     386@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     387@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.obj' libtool=no @AMDEPBACKSLASH@
     388@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     389@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
    371390
    372391ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  • trunk/speed/cppad/sparse_hessian.cpp

    r1497 r1537  
    9090        w[0] = 1.;
    9191
     92        // used to display results of optimizing the operation sequence
    9293        static bool printed = false;
    9394        bool print_this_time = (! printed) & (repeat > 1) & (n >= 30);
  • trunk/speed/double/makefile.am

    r1369 r1537  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    4444        ../link_poly.cpp \
    4545        ../link_sparse_hessian.cpp \
     46        ../link_sparse_jacobian.cpp \
    4647        det_lu.cpp  \
    4748        det_minor.cpp \
    4849        poly.cpp \
    49         sparse_hessian.cpp
     50        sparse_hessian.cpp \
     51        sparse_jacobian.cpp
  • trunk/speed/double/makefile.in

    r1401 r1537  
    4848        link_det_lu.$(OBJEXT) link_det_minor.$(OBJEXT) \
    4949        link_poly.$(OBJEXT) link_sparse_hessian.$(OBJEXT) \
    50         det_lu.$(OBJEXT) det_minor.$(OBJEXT) poly.$(OBJEXT) \
    51         sparse_hessian.$(OBJEXT)
     50        link_sparse_jacobian.$(OBJEXT) det_lu.$(OBJEXT) \
     51        det_minor.$(OBJEXT) poly.$(OBJEXT) sparse_hessian.$(OBJEXT) \
     52        sparse_jacobian.$(OBJEXT)
    5253double_OBJECTS = $(am_double_OBJECTS)
    5354double_LDADD = $(LDADD)
     
    208209        ../link_poly.cpp \
    209210        ../link_sparse_hessian.cpp \
     211        ../link_sparse_jacobian.cpp \
    210212        det_lu.cpp  \
    211213        det_minor.cpp \
    212214        poly.cpp \
    213         sparse_hessian.cpp
     215        sparse_hessian.cpp \
     216        sparse_jacobian.cpp
    214217
    215218all: all-am
     
    267270@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_poly.Po@am__quote@
    268271@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_hessian.Po@am__quote@
     272@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_jacobian.Po@am__quote@
    269273@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
    270274@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ode.Po@am__quote@
    271275@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poly.Po@am__quote@
    272276@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_hessian.Po@am__quote@
     277@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_jacobian.Po@am__quote@
    273278
    274279.cpp.o:
     
    369374@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    370375@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_hessian.obj `if test -f '../link_sparse_hessian.cpp'; then $(CYGPATH_W) '../link_sparse_hessian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_hessian.cpp'; fi`
     376
     377link_sparse_jacobian.o: ../link_sparse_jacobian.cpp
     378@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.o -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     379@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     380@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.o' libtool=no @AMDEPBACKSLASH@
     381@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     382@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     383
     384link_sparse_jacobian.obj: ../link_sparse_jacobian.cpp
     385@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.obj -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
     386@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     387@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.obj' libtool=no @AMDEPBACKSLASH@
     388@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     389@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
    371390
    372391ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  • trunk/speed/fadbad/makefile.am

    r1369 r1537  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    4444        ../link_poly.cpp \
    4545        ../link_sparse_hessian.cpp \
     46        ../link_sparse_jacobian.cpp \
    4647        det_lu.cpp  \
    4748        det_minor.cpp  \
    4849        poly.cpp \
    49         sparse_hessian.cpp
     50        sparse_hessian.cpp \
     51        sparse_jacobian.cpp
  • trunk/speed/fadbad/makefile.in

    r1401 r1537  
    4848        link_det_lu.$(OBJEXT) link_det_minor.$(OBJEXT) \
    4949        link_poly.$(OBJEXT) link_sparse_hessian.$(OBJEXT) \
    50         det_lu.$(OBJEXT) det_minor.$(OBJEXT) poly.$(OBJEXT) \
    51         sparse_hessian.$(OBJEXT)
     50        link_sparse_jacobian.$(OBJEXT) det_lu.$(OBJEXT) \
     51        det_minor.$(OBJEXT) poly.$(OBJEXT) sparse_hessian.$(OBJEXT) \
     52        sparse_jacobian.$(OBJEXT)
    5253fadbad_OBJECTS = $(am_fadbad_OBJECTS)
    5354fadbad_LDADD = $(LDADD)
     
    208209        ../link_poly.cpp \
    209210        ../link_sparse_hessian.cpp \
     211        ../link_sparse_jacobian.cpp \
    210212        det_lu.cpp  \
    211213        det_minor.cpp  \
    212214        poly.cpp \
    213         sparse_hessian.cpp
     215        sparse_hessian.cpp \
     216        sparse_jacobian.cpp
    214217
    215218all: all-am
     
    267270@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_poly.Po@am__quote@
    268271@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_hessian.Po@am__quote@
     272@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_jacobian.Po@am__quote@
    269273@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
    270274@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ode.Po@am__quote@
    271275@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poly.Po@am__quote@
    272276@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_hessian.Po@am__quote@
     277@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_jacobian.Po@am__quote@
    273278
    274279.cpp.o:
     
    369374@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    370375@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_hessian.obj `if test -f '../link_sparse_hessian.cpp'; then $(CYGPATH_W) '../link_sparse_hessian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_hessian.cpp'; fi`
     376
     377link_sparse_jacobian.o: ../link_sparse_jacobian.cpp
     378@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.o -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     379@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     380@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.o' libtool=no @AMDEPBACKSLASH@
     381@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     382@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     383
     384link_sparse_jacobian.obj: ../link_sparse_jacobian.cpp
     385@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.obj -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
     386@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     387@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.obj' libtool=no @AMDEPBACKSLASH@
     388@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     389@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
    371390
    372391ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  • trunk/speed/link_sparse_hessian.cpp

    r1497 r1537  
    4040$latex f : \R^n \rightarrow \R $$ is defined by $cref/sparse_evaluate/$$
    4141and the index vectors $icode i$$ and $icode j$$.
    42 The only non-zero entries in the Hessian of this function have the form
     42The non-zero entries in the Hessian of this function have
     43one of the following forms:
    4344$latex \[
    44         \DD{f}{x[[k]]}{x[j[k]]}
     45        \DD{f}{x[i[k]]}{x[i[k]]}
     46        \; , \;
     47        \DD{f}{x[i[k]]}{x[j[k]]}
     48        \; , \;
     49        \DD{f}{x[j[k]]}{x[i[k]]}
     50        \; , \;
     51        \DD{f}{x[j[k]]}{x[j[k]]}
    4552\] $$
    46 for some $latex k $$ between zero and $latex \ell-1 $$.
     53for some \( k \) between zero and \( \ell-1 \).
     54All the other terms of the Hessian are zero.
    4755
    4856$head repeat$$
  • trunk/speed/main.cpp

    r1497 r1537  
    5656        det
    5757        lu
     58        Jacobian
    5859$$
    5960
     
    106107$cref/ode/link_ode/$$,
    107108$cref/poly/link_poly/$$,
    108 $cref/sparse_hessian/link_sparse_hessian/$$.
     109$cref/sparse_hessian/link_sparse_hessian/$$,
     110$cref/sparse_jacobian/link_sparse_jacobian/$$.
    109111
    110112$subhead correct$$
     
    178180        speed/link_poly.cpp%
    179181        speed/link_sparse_hessian.cpp%
     182        speed/link_sparse_jacobian.cpp%
    180183        speed/link_ode.cpp
    181184%$$
     
    192195CPPAD_DECLARE_SPEED(det_lu);
    193196CPPAD_DECLARE_SPEED(det_minor);
     197CPPAD_DECLARE_SPEED(ode);
    194198CPPAD_DECLARE_SPEED(poly);
    195199CPPAD_DECLARE_SPEED(sparse_hessian);
    196 CPPAD_DECLARE_SPEED(ode);
     200CPPAD_DECLARE_SPEED(sparse_jacobian);
    197201
    198202bool   global_retape;
     
    270274                "poly",
    271275                "sparse_hessian",
     276                "sparse_jacobian",
    272277                "speed"
    273278        };
     
    279284        const size_t test_poly           = 4;
    280285        const size_t test_sparse_hessian = 5;
    281         const size_t test_speed          = 6;
     286        const size_t test_sparse_jacobian= 6;
     287        const size_t test_speed          = 7;
    282288        assert( n_test == test_speed+1 );
    283289
     
    307313        {       cout << "usage: ./"
    308314                     << AD_PACKAGE << " test seed option_list" << endl;
    309                 cout << "test choices: " << test[0];
    310                 for(i = 1; i < n_test; i++)
    311                         cout << ", " << test[i];
    312                 cout << "." << endl << "seed choices: ";
     315                cout << "test choices: " << endl;
     316                for(i = 0; i < n_test; i++)
     317                        cout << "\t" << test[i] << endl;
     318                cout << "seed choices: ";
    313319                cout << "a positive integer used as a random seed." << endl;
    314320                cout << "option choices: ";
     
    327333        CppAD::vector<size_t> size_poly(n_size);
    328334        CppAD::vector<size_t> size_sparse_hessian(n_size);
     335        CppAD::vector<size_t> size_sparse_jacobian(n_size);
    329336        for(i = 0; i < n_size; i++)
    330337        {       size_det_lu[i]      = 3 * i + 1;
     
    332339                size_ode[i]         = i + 1;
    333340                size_poly[i]        = 8 * i + 1;
    334                 size_sparse_hessian[i] = 10 * (i + 1);
     341                size_sparse_hessian[i]  = 30 * (i + 1);
     342                size_sparse_jacobian[i] = 30 * (i + 1);
    335343        }
    336344# ifndef NDEBUG
     
    357365                        correct_sparse_hessian, "sparse_hessian"         
    358366                );
     367                if( available_sparse_jacobian() ) ok &= run_correct(
     368                        correct_sparse_jacobian, "sparse_jacobian"         
     369                );
    359370                // summarize results
    360371                assert( ok || (Run_error_count > 0) );
     
    384395                );
    385396                if( available_sparse_hessian() ) Run_speed(
    386                 speed_sparse_hessian,  size_sparse_hessian,   "sparse_hessian"
     397                speed_sparse_hessian,  size_sparse_hessian,  "sparse_hessian"
     398                );
     399                if( available_sparse_jacobian() ) Run_speed(
     400                speed_sparse_jacobian, size_sparse_jacobian, "sparse_jacobian"
    387401                );
    388402                ok = true;
     
    443457                Run_speed(
    444458                speed_sparse_hessian, size_sparse_hessian,  "sparse_hessian");
     459                break;
     460                // ---------------------------------------------------------
     461
     462                case test_sparse_jacobian:
     463                if( ! available_sparse_jacobian() )
     464                {       cout << AD_PACKAGE << ": test " << argv[1]
     465                             << " not available" << endl;
     466                        exit(1);
     467                }
     468                ok &= run_correct(correct_sparse_jacobian, "sparse_jacobian");
     469                Run_speed(
     470                speed_sparse_jacobian, size_sparse_jacobian, "sparse_jacobian"
     471                );
    445472                break;
    446473                // ---------------------------------------------------------
  • trunk/speed/profile/makefile.am

    r1369 r1537  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    4646        ../link_poly.cpp \
    4747        ../link_sparse_hessian.cpp \
     48        ../link_sparse_jacobian.cpp \
    4849        ../cppad/det_lu.cpp  \
    4950        ../cppad/det_minor.cpp  \
    5051        ../cppad/poly.cpp \
    51         ../cppad/sparse_hessian.cpp
     52        ../cppad/sparse_hessian.cpp \
     53        ../cppad/sparse_jacobian.cpp
  • trunk/speed/profile/makefile.in

    r1401 r1537  
    4848        link_det_lu.$(OBJEXT) link_det_minor.$(OBJEXT) \
    4949        link_poly.$(OBJEXT) link_sparse_hessian.$(OBJEXT) \
    50         det_lu.$(OBJEXT) det_minor.$(OBJEXT) poly.$(OBJEXT) \
    51         sparse_hessian.$(OBJEXT)
     50        link_sparse_jacobian.$(OBJEXT) det_lu.$(OBJEXT) \
     51        det_minor.$(OBJEXT) poly.$(OBJEXT) sparse_hessian.$(OBJEXT) \
     52        sparse_jacobian.$(OBJEXT)
    5253profile_OBJECTS = $(am_profile_OBJECTS)
    5354profile_LDADD = $(LDADD)
     
    210211        ../link_poly.cpp \
    211212        ../link_sparse_hessian.cpp \
     213        ../link_sparse_jacobian.cpp \
    212214        ../cppad/det_lu.cpp  \
    213215        ../cppad/det_minor.cpp  \
    214216        ../cppad/poly.cpp \
    215         ../cppad/sparse_hessian.cpp
     217        ../cppad/sparse_hessian.cpp \
     218        ../cppad/sparse_jacobian.cpp
    216219
    217220all: all-am
     
    269272@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_poly.Po@am__quote@
    270273@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_hessian.Po@am__quote@
     274@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_jacobian.Po@am__quote@
    271275@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
    272276@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ode.Po@am__quote@
    273277@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poly.Po@am__quote@
    274278@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_hessian.Po@am__quote@
     279@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_jacobian.Po@am__quote@
    275280
    276281.cpp.o:
     
    386391@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_hessian.obj `if test -f '../link_sparse_hessian.cpp'; then $(CYGPATH_W) '../link_sparse_hessian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_hessian.cpp'; fi`
    387392
     393link_sparse_jacobian.o: ../link_sparse_jacobian.cpp
     394@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.o -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     395@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     396@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.o' libtool=no @AMDEPBACKSLASH@
     397@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     398@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     399
     400link_sparse_jacobian.obj: ../link_sparse_jacobian.cpp
     401@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.obj -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
     402@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     403@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.obj' libtool=no @AMDEPBACKSLASH@
     404@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     405@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
     406
    388407det_lu.o: ../cppad/det_lu.cpp
    389408@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT det_lu.o -MD -MP -MF $(DEPDIR)/det_lu.Tpo -c -o det_lu.o `test -f '../cppad/det_lu.cpp' || echo '$(srcdir)/'`../cppad/det_lu.cpp
     
    441460@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    442461@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sparse_hessian.obj `if test -f '../cppad/sparse_hessian.cpp'; then $(CYGPATH_W) '../cppad/sparse_hessian.cpp'; else $(CYGPATH_W) '$(srcdir)/../cppad/sparse_hessian.cpp'; fi`
     462
     463sparse_jacobian.o: ../cppad/sparse_jacobian.cpp
     464@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sparse_jacobian.o -MD -MP -MF $(DEPDIR)/sparse_jacobian.Tpo -c -o sparse_jacobian.o `test -f '../cppad/sparse_jacobian.cpp' || echo '$(srcdir)/'`../cppad/sparse_jacobian.cpp
     465@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sparse_jacobian.Tpo $(DEPDIR)/sparse_jacobian.Po
     466@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../cppad/sparse_jacobian.cpp' object='sparse_jacobian.o' libtool=no @AMDEPBACKSLASH@
     467@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     468@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sparse_jacobian.o `test -f '../cppad/sparse_jacobian.cpp' || echo '$(srcdir)/'`../cppad/sparse_jacobian.cpp
     469
     470sparse_jacobian.obj: ../cppad/sparse_jacobian.cpp
     471@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sparse_jacobian.obj -MD -MP -MF $(DEPDIR)/sparse_jacobian.Tpo -c -o sparse_jacobian.obj `if test -f '../cppad/sparse_jacobian.cpp'; then $(CYGPATH_W) '../cppad/sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../cppad/sparse_jacobian.cpp'; fi`
     472@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/sparse_jacobian.Tpo $(DEPDIR)/sparse_jacobian.Po
     473@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../cppad/sparse_jacobian.cpp' object='sparse_jacobian.obj' libtool=no @AMDEPBACKSLASH@
     474@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     475@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sparse_jacobian.obj `if test -f '../cppad/sparse_jacobian.cpp'; then $(CYGPATH_W) '../cppad/sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../cppad/sparse_jacobian.cpp'; fi`
    443476
    444477ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  • trunk/speed/sacado/makefile.am

    r1369 r1537  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    4646        ../link_poly.cpp \
    4747        ../link_sparse_hessian.cpp \
     48        ../link_sparse_jacobian.cpp \
    4849        det_lu.cpp  \
    4950        det_minor.cpp \
    5051        poly.cpp \
    51         sparse_hessian.cpp
     52        sparse_hessian.cpp \
     53        sparse_jacobian.cpp
  • trunk/speed/sacado/makefile.in

    r1401 r1537  
    4848        link_det_lu.$(OBJEXT) link_det_minor.$(OBJEXT) \
    4949        link_poly.$(OBJEXT) link_sparse_hessian.$(OBJEXT) \
    50         det_lu.$(OBJEXT) det_minor.$(OBJEXT) poly.$(OBJEXT) \
    51         sparse_hessian.$(OBJEXT)
     50        link_sparse_jacobian.$(OBJEXT) det_lu.$(OBJEXT) \
     51        det_minor.$(OBJEXT) poly.$(OBJEXT) sparse_hessian.$(OBJEXT) \
     52        sparse_jacobian.$(OBJEXT)
    5253sacado_OBJECTS = $(am_sacado_OBJECTS)
    5354sacado_LDADD = $(LDADD)
     
    212213        ../link_poly.cpp \
    213214        ../link_sparse_hessian.cpp \
     215        ../link_sparse_jacobian.cpp \
    214216        det_lu.cpp  \
    215217        det_minor.cpp \
    216218        poly.cpp \
    217         sparse_hessian.cpp
     219        sparse_hessian.cpp \
     220        sparse_jacobian.cpp
    218221
    219222all: all-am
     
    271274@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_poly.Po@am__quote@
    272275@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_hessian.Po@am__quote@
     276@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_sparse_jacobian.Po@am__quote@
    273277@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
    274278@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ode.Po@am__quote@
    275279@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poly.Po@am__quote@
    276280@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_hessian.Po@am__quote@
     281@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparse_jacobian.Po@am__quote@
    277282
    278283.cpp.o:
     
    373378@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    374379@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_hessian.obj `if test -f '../link_sparse_hessian.cpp'; then $(CYGPATH_W) '../link_sparse_hessian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_hessian.cpp'; fi`
     380
     381link_sparse_jacobian.o: ../link_sparse_jacobian.cpp
     382@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.o -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     383@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     384@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.o' libtool=no @AMDEPBACKSLASH@
     385@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     386@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.o `test -f '../link_sparse_jacobian.cpp' || echo '$(srcdir)/'`../link_sparse_jacobian.cpp
     387
     388link_sparse_jacobian.obj: ../link_sparse_jacobian.cpp
     389@am__fastdepCXX_TRUE@   $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT link_sparse_jacobian.obj -MD -MP -MF $(DEPDIR)/link_sparse_jacobian.Tpo -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
     390@am__fastdepCXX_TRUE@   $(am__mv) $(DEPDIR)/link_sparse_jacobian.Tpo $(DEPDIR)/link_sparse_jacobian.Po
     391@AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='../link_sparse_jacobian.cpp' object='link_sparse_jacobian.obj' libtool=no @AMDEPBACKSLASH@
     392@AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     393@am__fastdepCXX_FALSE@  $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o link_sparse_jacobian.obj `if test -f '../link_sparse_jacobian.cpp'; then $(CYGPATH_W) '../link_sparse_jacobian.cpp'; else $(CYGPATH_W) '$(srcdir)/../link_sparse_jacobian.cpp'; fi`
    375394
    376395ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
Note: See TracChangeset for help on using the changeset viewer.