source: trunk/test_more/CMakeLists.txt @ 3811

Last change on this file since 3811 was 3811, checked in by bradbell, 4 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: f77cd2e443b8d14f354f97efc4c26369227dfe81
end hash code: 33d1f5b8d837d83c8baf656045d85d8b45f0b297

commit 33d1f5b8d837d83c8baf656045d85d8b45f0b297
Author: Brad Bell <bradbell@…>
Date: Sun Mar 27 04:01:14 2016 -0700

  1. Test non-symmetric reverse mode in eigen_mat_inv (and fix this example).
  2. Advance version to cppad-20160327.

commit 238e214ff36ca835efca615c609576dc8bf5038d
Author: Brad Bell <bradbell@…>
Date: Sat Mar 26 18:10:59 2016 -0700

eigen_mat_inv.hpp: use inverse matrix (since we are computing it).
eigen_mat_mul.hpp: comment seperator.
eigen_mat_inv.cpp: matrix during recording is non-singular.
eigen_mat_inv.cpp: test first and second order forward.

commit fc918b0476cc8ea66abdf2904a71fc93472d279d
Author: Brad Bell <bradbell@…>
Date: Sat Mar 26 16:26:51 2016 -0700

Add test_more/eigen_mat_inv.cpp.


eigen_mat_inv.hpp: fix calculation of vy.
eigen_mat_inv.cpp: fix section title.
CMakeLists.txt: no longer necessary to have special library for eigen tests.
eigen_mat_inv.cpp: Test with non-symmetric matrix.

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: CMakeLists.txt 3811 2016-03-27 13:00:39Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell
4#
5# CppAD is distributed under multiple licenses. This distribution is under
6# the terms of the
7#                     Eclipse Public License Version 1.0.
8#
9# A copy of this license is included in the COPYING file of this distribution.
10# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
11# -----------------------------------------------------------------------------
12# Build the test_more directory tests
13# Inherit environment from ../CMakeList.txt
14
15# Specifies build type for this directory. Possible values are
16# empty, Debug, Release, RelWithDebInfo and MinSizeRel
17SET(CMAKE_BUILD_TYPE DEBUG)
18
19# This directory now contains omp_alloc.cpp which uses multi-threading, so
20# so no longer can set CPPAD_MAX_NUM_THREADS equal to one (its smallest value)
21# ADD_DEFINITIONS("-DCPPAD_MAX_NUM_THREADS=1")
22
23# adolc_sources, adolc_libs and CPPAD_ADOLC_TEST
24SET(sources base_adolc.cpp)
25sources_libs_define(adolc "${sources}" adolc ADOLC_TEST)
26
27# eigen_sources and CPPAD_EIGEN_TEST
28SET(sources cppad_eigen.cpp eigen_mat_inv.cpp)
29sources_libs_define(eigen "${sources}" "" EIGEN_TEST)
30
31# ipopt_prefix
32SET(sources ipopt_solve.cpp)
33sources_libs_define(ipopt "${sources}" "${ipopt_LIBRARIES}" IPOPT_TEST)
34
35# )
36ADD_EXECUTABLE(test_more EXCLUDE_FROM_ALL test_more.cpp
37        ${adolc_sources}
38        ${eigen_sources}
39        ${ipopt_sources}
40        old_usead_2.cpp
41        old_usead_1.cpp
42        old_tan.cpp
43        old_reciprocal.cpp
44        old_mat_mul.cpp
45        abs.cpp
46        acos.cpp
47        acosh.cpp
48        adfun_copy.cpp
49        asin.cpp
50        asinh.cpp
51        assign.cpp
52        add.cpp
53        add_eq.cpp
54        add_zero.cpp
55        atan.cpp
56        atanh.cpp
57        atan2.cpp
58        azmul.cpp
59        base_alloc.cpp
60        check_simple_vector.cpp
61        checkpoint.cpp
62        compare.cpp
63        compare_change.cpp
64        cond_exp.cpp
65        cond_exp_ad.cpp
66        cond_exp_rev.cpp
67        copy.cpp
68        cos.cpp
69        cosh.cpp
70        dbl_epsilon.cpp
71        div.cpp
72        div_eq.cpp
73        div_zero_one.cpp
74        erf.cpp
75        exp.cpp
76        expm1.cpp
77        extern_value.cpp
78        for_hess.cpp
79        for_sparse_hes.cpp
80        for_sparse_jac.cpp
81        forward.cpp
82        forward_dir.cpp
83        forward_order.cpp
84        from_base.cpp
85        fun_check.cpp
86        hes_sparsity.cpp
87        jacobian.cpp
88        num_limits.cpp
89        log.cpp
90        log1p.cpp
91        log10.cpp
92        mul.cpp
93        mul_cskip.cpp
94        mul_eq.cpp
95        mul_level.cpp
96        mul_cond_rev.cpp
97        mul_zdouble.cpp
98        mul_zero_one.cpp
99        near_equal_ext.cpp
100        neg.cpp
101        ode_err_control.cpp
102        omp_alloc.cpp
103        optimize.cpp
104        parameter.cpp
105        poly.cpp
106        pow.cpp
107        pow_int.cpp
108        print_for.cpp
109        romberg_one.cpp
110        rosen_34.cpp
111        runge_45.cpp
112        reverse.cpp
113        rev_sparse_jac.cpp
114        rev_two.cpp
115        simple_vector.cpp
116        sin.cpp
117        sin_cos.cpp
118        sinh.cpp
119        sparse_hessian.cpp
120        sparse_jacobian.cpp
121        sparse_vec_ad.cpp
122        sqrt.cpp
123        std_math.cpp
124        sub.cpp
125        sub_eq.cpp
126        sub_zero.cpp
127        tan.cpp
128        test_vector.cpp
129        to_string.cpp
130        track_new_del.cpp
131        value.cpp
132        vec_ad.cpp
133        vec_ad_par.cpp
134        vec_unary.cpp
135        zdouble.cpp
136
137        local/vector_set.cpp
138)
139
140# Compiler flags for cppad source
141add_cppad_cxx_flags(test_more)
142
143# List of libraries to be linked into the specified target
144TARGET_LINK_LIBRARIES(test_more
145        ${cppad_lib}
146        ${adolc_libs}
147        ${ipopt_libs}
148        ${colpack_libs}
149)
150
151# Add the check_test_more target
152ADD_CUSTOM_TARGET( check_test_more test_more DEPENDS test_more )
Note: See TracBrowser for help on using the repository browser.