Changeset 3705 for trunk/test_more


Ignore:
Timestamp:
Aug 9, 2015 12:12:42 PM (4 years ago)
Author:
bradbell
Message:

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

commit c83610c832f46daffbf6af110fec4105b180a543
Author: Brad Bell <bradbell@…>
Date: Sun Aug 9 09:09:38 2015 -0700

Add preservation of data to specification for resize on CppAD::vector.

commit cc45bd84261692cfeac9ec2148f75200af785bb2
Author: Brad Bell <bradbell@…>
Date: Thu Aug 6 08:36:57 2015 -0700

  1. Fix bug in numeric_limits for zdouble type.
  2. Update autotools install (which is deprecated) to new version.


search.sh: do not search file generated by autotools.
CMakeLists.txt: suppress new warning when compiling eigen g++ 5.1.1.
base_std_math.hpp: change limits -> numeric_limits.
zdouble.hpp: fix bug here.
mul_zdouble.cpp: text for bug here.

Location:
trunk/test_more
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/makefile.in

    r3689 r3705  
    1 # makefile.in generated by automake 1.14.1 from makefile.am.
     1# makefile.in generated by automake 1.15 from makefile.am.
    22# @configure_input@
    33
    4 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
     4# Copyright (C) 1994-2014 Free Software Foundation, Inc.
    55
    66# This Makefile.in is free software; the Free Software Foundation
     
    1616
    1717VPATH = @srcdir@
    18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
     18am__is_gnu_make = { \
     19  if test -z '$(MAKELEVEL)'; then \
     20    false; \
     21  elif test -n '$(MAKE_HOST)'; then \
     22    true; \
     23  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
     24    true; \
     25  else \
     26    false; \
     27  fi; \
     28}
    1929am__make_running_with_option = \
    2030  case $${target_option-} in \
     
    8191check_PROGRAMS = test_more$(EXEEXT)
    8292subdir = test_more
    83 DIST_COMMON = $(srcdir)/makefile.in $(srcdir)/makefile.am \
    84         $(srcdir)/test_one.sh.in $(top_srcdir)/depcomp
    8593ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    8694am__aclocal_m4_deps = $(top_srcdir)/configure.ac
    8795am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    8896        $(ACLOCAL_M4)
     97DIST_COMMON = $(srcdir)/makefile.am $(am__DIST_COMMON)
    8998mkinstalldirs = $(install_sh) -d
    9099CONFIG_CLEAN_FILES = test_one.sh
     
    239248ETAGS = etags
    240249CTAGS = ctags
     250am__DIST_COMMON = $(srcdir)/makefile.in $(srcdir)/test_one.sh.in \
     251        $(top_srcdir)/depcomp
    241252DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    242253ABS_TOP_BUILDDIR = @ABS_TOP_BUILDDIR@
     
    583594        $(am__cd) $(top_srcdir) && \
    584595          $(AUTOMAKE) --gnu test_more/makefile
    585 .PRECIOUS: makefile
    586596makefile: $(srcdir)/makefile.in $(top_builddir)/config.status
    587597        @case '$?' in \
     
    949959        uninstall-am
    950960
     961.PRECIOUS: makefile
     962
    951963
    952964test: check
  • trunk/test_more/mul_zdouble.cpp

    r3688 r3705  
    115115        }
    116116        // ----------------------------------------------------------------------
     117        bool check_numeric_limits(void)
     118        {       bool ok = true;
     119                //
     120                double   double_eps  = std::numeric_limits<double>::epsilon();
     121                zdouble  zdouble_eps = CppAD::numeric_limits<zdouble>::epsilon();
     122                ok &= double_eps == zdouble_eps;
     123                //
     124                double   double_min  = std::numeric_limits<double>::min();
     125                zdouble  zdouble_min = CppAD::numeric_limits<zdouble>::min();
     126                ok &= double_min == zdouble_min;
     127                //
     128                double   double_max  = std::numeric_limits<double>::max();
     129                zdouble  zdouble_max = CppAD::numeric_limits<zdouble>::max();
     130                ok &= double_max == zdouble_max;
     131                //
     132                return ok;
     133        }
    117134
    118135}
     
    123140        ok &= check_div();
    124141        ok &= check_mul();
     142        ok &= check_numeric_limits();
    125143
    126144        return ok;
Note: See TracChangeset for help on using the changeset viewer.