Changeset 1563


Ignore:
Timestamp:
Oct 24, 2009 12:23:23 PM (11 years ago)
Author:
bradbell
Message:

trunk: Add fun_assign.cpp to MS example project file and remove
valarray<set> cases from tests.

Location:
trunk/example
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/example/example.vcproj

    r1538 r1563  
    223223                        </File>
    224224                        <File
     225                                RelativePath=".\fun_assign.cpp">
     226                        </File>
     227                        <File
    225228                                RelativePath=".\fun_check.cpp">
    226229                        </File>
  • trunk/example/for_sparse_jac.cpp

    r1550 r1563  
    160160        ok &= BoolCases< std::valarray  <bool> >();
    161161
    162         // Run with Vector equal to three different cases all of which are
     162        // Run with Vector equal to two different cases both of which are
    163163        // Simple Vectors with elements of type std::set<size_t>
    164164        typedef std::set<size_t> set;
    165165        ok &= SetCases< CppAD::vector  <set> >();
    166166        ok &= SetCases< std::vector    <set> >();
    167         ok &= SetCases< std::valarray  <set> >();
     167
     168        // Do not use valarray because its element access in the const case
     169        // returns a copy instead of a reference
     170        // ok &= SetCases< std::valarray  <set> >();
    168171
    169172        return ok;
  • trunk/example/rev_sparse_hes.cpp

    r1550 r1563  
    196196        ok &= BoolCases< std::valarray  <bool> >();
    197197
    198         // Run with Vector equal to three different cases all of which are
     198        // Run with Vector equal to two different cases both of which are
    199199        // Simple Vectors with elements of type std::set<size_t>
    200200        typedef std::set<size_t> set;
    201201        ok &= SetCases< CppAD::vector  <set> >();
    202202        ok &= SetCases< std::vector    <set> >();
    203         ok &= SetCases< std::valarray  <set> >();
     203
     204        // Do not use valarray because its element access in the const case
     205        // returns a copy instead of a reference
     206        // ok &= SetCases< std::valarray  <set> >();
    204207
    205208        return ok;
  • trunk/example/rev_sparse_jac.cpp

    r1550 r1563  
    157157        ok &= BoolCases< std::valarray  <bool> >();
    158158
    159         // Run with Vector equal to three different cases all of which are
     159
     160        // Run with Vector equal to two different cases both of which are
    160161        // Simple Vectors with elements of type std::set<size_t>
    161162        typedef std::set<size_t> set;
    162163        ok &= SetCases< CppAD::vector  <set> >();
    163164        ok &= SetCases< std::vector    <set> >();
    164         ok &= SetCases< std::valarray  <set> >();
     165
     166        // Do not use valarray because its element access in the const case
     167        // returns a copy instead of a reference
     168        // ok &= SetCases< std::valarray  <set> >();
    165169
    166170        return ok;
Note: See TracChangeset for help on using the changeset viewer.