Ignore:
Timestamp:
Feb 27, 2013 1:49:28 PM (7 years ago)
Author:
bradbell
Message:

Make testing of numeric limits more robust by
using external functions, instead of arrays, for storing temporary values.

extern_value.cpp: external functions for getting and setting values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/makefile.in

    r2755 r2756  
    7676        compare_change.cpp cond_exp.cpp cond_exp_ad.cpp copy.cpp \
    7777        cos.cpp cosh.cpp dbl_epsilon.cpp div.cpp div_eq.cpp \
    78         div_zero_one.cpp erf.cpp exp.cpp for_hess.cpp \
    79         for_sparse_jac.cpp forward.cpp from_base.cpp fun_check.cpp \
    80         jacobian.cpp limits.cpp log.cpp log10.cpp mul.cpp mul_eq.cpp \
    81         mul_level.cpp mul_zero_one.cpp ndebug.cpp near_equal_ext.cpp \
    82         neg.cpp ode_err_control.cpp optimize.cpp parameter.cpp \
    83         poly.cpp pow.cpp pow_int.cpp print_for.cpp romberg_one.cpp \
    84         rosen_34.cpp runge_45.cpp reverse.cpp rev_sparse_hes.cpp \
    85         rev_sparse_jac.cpp rev_two.cpp simple_vector.cpp sin.cpp \
    86         sin_cos.cpp sinh.cpp sparse_hessian.cpp sparse_jacobian.cpp \
    87         sparse_vec_ad.cpp sqrt.cpp std_math.cpp sub.cpp sub_eq.cpp \
    88         sub_zero.cpp tan.cpp test_vector.cpp track_new_del.cpp \
    89         value.cpp vec_ad.cpp vec_ad_par.cpp vec_unary.cpp
     78        div_zero_one.cpp erf.cpp exp.cpp extern_value.cpp \
     79        extern_value.hpp for_hess.cpp for_sparse_jac.cpp forward.cpp \
     80        from_base.cpp fun_check.cpp jacobian.cpp limits.cpp log.cpp \
     81        log10.cpp mul.cpp mul_eq.cpp mul_level.cpp mul_zero_one.cpp \
     82        ndebug.cpp near_equal_ext.cpp neg.cpp ode_err_control.cpp \
     83        optimize.cpp parameter.cpp poly.cpp pow.cpp pow_int.cpp \
     84        print_for.cpp romberg_one.cpp rosen_34.cpp runge_45.cpp \
     85        reverse.cpp rev_sparse_hes.cpp rev_sparse_jac.cpp rev_two.cpp \
     86        simple_vector.cpp sin.cpp sin_cos.cpp sinh.cpp \
     87        sparse_hessian.cpp sparse_jacobian.cpp sparse_vec_ad.cpp \
     88        sqrt.cpp std_math.cpp sub.cpp sub_eq.cpp sub_zero.cpp tan.cpp \
     89        test_vector.cpp track_new_del.cpp value.cpp vec_ad.cpp \
     90        vec_ad_par.cpp vec_unary.cpp
    9091@CppAD_ADOLC_TRUE@am__objects_1 = base_adolc.$(OBJEXT)
    9192@CppAD_IPOPT_TRUE@am__objects_2 = ipopt_solve.$(OBJEXT)
     
    101102        cosh.$(OBJEXT) dbl_epsilon.$(OBJEXT) div.$(OBJEXT) \
    102103        div_eq.$(OBJEXT) div_zero_one.$(OBJEXT) erf.$(OBJEXT) \
    103         exp.$(OBJEXT) for_hess.$(OBJEXT) for_sparse_jac.$(OBJEXT) \
    104         forward.$(OBJEXT) from_base.$(OBJEXT) fun_check.$(OBJEXT) \
    105         jacobian.$(OBJEXT) limits.$(OBJEXT) log.$(OBJEXT) \
    106         log10.$(OBJEXT) mul.$(OBJEXT) mul_eq.$(OBJEXT) \
     104        exp.$(OBJEXT) extern_value.$(OBJEXT) for_hess.$(OBJEXT) \
     105        for_sparse_jac.$(OBJEXT) forward.$(OBJEXT) from_base.$(OBJEXT) \
     106        fun_check.$(OBJEXT) jacobian.$(OBJEXT) limits.$(OBJEXT) \
     107        log.$(OBJEXT) log10.$(OBJEXT) mul.$(OBJEXT) mul_eq.$(OBJEXT) \
    107108        mul_level.$(OBJEXT) mul_zero_one.$(OBJEXT) ndebug.$(OBJEXT) \
    108109        near_equal_ext.$(OBJEXT) neg.$(OBJEXT) \
     
    136137CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
    137138        -o $@
     139COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
     140        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     141CCLD = $(CC)
     142LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    138143SOURCES = $(libeigen_a_SOURCES) $(test_more_SOURCES)
    139144DIST_SOURCES = $(am__libeigen_a_SOURCES_DIST) \
     
    394399        erf.cpp \
    395400        exp.cpp \
     401        extern_value.cpp \
     402        extern_value.hpp \
    396403        for_hess.cpp \
    397404        for_sparse_jac.cpp \
     
    526533@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/erf.Po@am__quote@
    527534@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exp.Po@am__quote@
     535@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/extern_value.Po@am__quote@
    528536@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/for_hess.Po@am__quote@
    529537@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/for_sparse_jac.Po@am__quote@
Note: See TracChangeset for help on using the changeset viewer.