Changeset 2906


Ignore:
Timestamp:
Oct 6, 2013 9:51:24 AM (7 years ago)
Author:
bradbell
Message:

Copy changes from trunk to fix warnings using g++ 4.8.1.

nan.hpp: edit by hand (not a copy of trunk version).
cppad_eigen.cpp: edit by hand (not a copy of trunk version).

Location:
stable/20130000
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • stable/20130000/bin/check_doxygen.sh

    r2506 r2906  
    22# $Id$
    33# -----------------------------------------------------------------------------
    4 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     4# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    55#
    66# CppAD is distributed under multiple licenses. This distribution is under
     
    4040        exit 0
    4141fi
     42if (( $doxygen_version == 183 ))
     43then
     44        doxygen_version=`doxygen --version`
     45        echo "doxygen version $doxygen_version is == 1.8.3"
     46        echo "Have not yet determined if this is a problem or not"
     47        exit 0
     48fi
    4249list=`head doxygen.err`
    4350if [ "$list" == "" ]
  • stable/20130000/cppad/check_simple_vector.hpp

    r2506 r2906  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
     
    5656%$$
    5757In addition, the check
    58 $code%
     58$codei%
    5959        %x% == %x%
    6060%$$
    6161will return the boolean value $code true$$, and
    62 $code%
     62$codei%
    6363        %x% == %y%
    6464%$$
     
    124124
    125125        template <class T>
    126         struct ok_if_S_same_as_T<T,T> { typedef T ok; };
     126        struct ok_if_S_same_as_T<T,T> { T value; };
    127127
    128128        template <class Scalar, class Vector>
     
    138138
    139139                // check that elements of Vector have type Scalar
    140                 typedef typename ok_if_S_same_as_T<Scalar, value_type>::ok ok;
     140                struct ok_if_S_same_as_T<Scalar, value_type> x_copy;
     141                x_copy.value = x;
    141142
    142143                // check default constructor
     
    163164
    164165                // check copy constructor
    165                 s[0] = x;
     166                s[0] = x_copy.value;
    166167                const Vector c(s);
    167168                s[0] = y;
  • stable/20130000/cppad/local/sparse_hessian.hpp

    r2683 r2906  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
     
    564564        if( work.color.size() == 0 )
    565565        {       bool transpose = false;
    566                 typedef typename VectorSet::value_type Set_type;
    567566                sparsity_user2internal(sparsity, p, n, n, transpose);
    568567        }
     
    637636        if( work.color.size() == 0 )
    638637        {       bool transpose = false;
    639                 typedef typename VectorSet::value_type Set_type;
    640638                sparsity_user2internal(sparsity, p, n, n, transpose);
    641639        }
  • stable/20130000/cppad/nan.hpp

    r2506 r2906  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
     
    199199bool hasnan(const Vector &v)
    200200{
    201         typedef typename Vector::value_type Scalar;
    202 
    203201        bool found_nan;
    204202        size_t i;
  • stable/20130000/example/eigen_array.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    4242        using Eigen::Dynamic;
    4343        //
    44         typedef Matrix< double     , Dynamic, 1 > vector;
    4544        typedef Matrix< AD<double> , Dynamic, 1 > a_vector;
    4645        //
  • stable/20130000/example/lu_vec_ad_ok.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    4343        using namespace CppAD;
    4444        typedef AD<double> ADdouble;
    45         typedef CPPAD_TESTVECTOR(ADdouble) ADVector;
    4645
    4746        size_t              n = 3;
  • stable/20130000/speed/cppad/ode.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    6868        typedef CppAD::AD<double>       ADScalar;
    6969        typedef CppAD::vector<ADScalar> ADVector;
    70         typedef CppAD::vector<double>   DblVector;
    7170
    7271        size_t j;
  • stable/20130000/speed/cppad/sparse_hessian.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    105105        // -----------------------------------------------------
    106106        // setup
    107         typedef vector<size_t>              SizeVector;
    108107        typedef vector<double>              DblVector;
    109108        typedef vector< std::set<size_t> >  SetVector;
    110         typedef vector<bool>                BoolVector;
    111109        typedef CppAD::AD<double>           ADScalar;
    112110        typedef vector<ADScalar>            ADVector;
     
    135133        SetVector sparsity(n);
    136134# else
     135        typedef vector<bool>                BoolVector;
    137136        BoolVector sparsity(n * n);
    138137# endif
  • stable/20130000/speed/cppad/sparse_jacobian.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    9292        // -----------------------------------------------------
    9393        // setup
    94         typedef CppAD::vector<size_t>       SizeVector;
    9594        typedef vector< std::set<size_t> >  SetVector;
    96         typedef vector<bool>                BoolVector;
    9795        typedef CppAD::vector<double>       DblVector;
    9896        typedef CppAD::AD<double>           ADScalar;
     
    117115        SetVector sparsity(m);
    118116# else
     117        typedef vector<bool>  BoolVector;
    119118        BoolVector sparsity(m * n);
    120119# endif
  • stable/20130000/speed/sacado/ode.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    6565        typedef Sacado::Fad::DFad<double>  ADScalar;
    6666        typedef CppAD::vector<ADScalar>    ADVector;
    67         typedef CppAD::vector<double>     DblVector;
    6867
    6968        size_t i, j;
  • stable/20130000/test_more/cppad_eigen.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    2424
    2525        typedef Eigen::NumTraits<AD<double> >         traits;
    26         typedef Eigen::Matrix<AD<double>, Dynamic, 1> a_vector;
    27         typedef typename a_vector::value_type         a_scalar;
    2826
    2927        ok &= traits::IsComplex              == 0;
  • stable/20130000/test_more/sparse_jacobian.cpp

    r2506 r2906  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    570570        // vector of set cases
    571571        typedef std::vector< std::set<size_t> >   std_vector_set;
    572         typedef std::valarray< std::set<size_t> > std_valarray_set;
    573572        typedef CppAD::vector< std::set<size_t> > cppad_vector_set;
    574573        //
     
    581580        // According to section 26.3.2.3 of the 1998 C++ standard
    582581        // a const valarray does not return references to its elements.
     582        // typedef std::valarray< std::set<size_t> > std_valarray_set;
    583583        // ok &= forward_set< std::valarray<double>, std_valarray_set >();
    584584        // ok &= reverse_set< std::valarray<double>, std_valarray_set >();
Note: See TracChangeset for help on using the changeset viewer.