Changeset 2935


Ignore:
Timestamp:
Oct 12, 2013 3:40:01 PM (6 years ago)
Author:
bradbell
Message:

check_svn_id.sh: Ignore bug/build directory.
std_vector.sh: Add copyright message.
rev_sparse_hes.cpp: Fix problem on OSX systems.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/check_svn_id.sh

    r2720 r2935  
    3131                -e '/^work\//d' \
    3232                -e '/^build\//d' \
     33                -e '/^bug\/build\//d' \
    3334                -e '/svn_dist\//d' \
    3435                -e 's|/[^/]*$||' \
  • trunk/bug/std_vector.sh

    r2932 r2935  
    11#! /bin/bash -e
     2# $Id$
     3# -----------------------------------------------------------------------------
     4# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
     5#
     6# CppAD is distributed under multiple licenses. This distribution is under
     7# the terms of the
     8#                     Eclipse Public License Version 1.0.
     9#
     10# A copy of this license is included in the COPYING file of this distribution.
     11# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
    212# -----------------------------------------------------------------------------
    313# Using g++ 4.8.1 results in the following error message:
  • trunk/omh/whats_new/whats_new_13.omh

    r2931 r2935  
    1414$dollar @$$
    1515$spell
     16        aka
    1617        sacado
    1718        resize
     
    5556
    5657$head 10-12$$
     58$list number$$
    5759Change $cref get_eigen.sh$$ so that it will reuse install information
    5860when it is present.
     
    6163$cref/get_ipopt.sh/get_ipopt.sh/Reuse/$$, and
    6264$cref/get_sacado.sh/get_sacado.sh/Reuse/$$.
    63 
     65$lnext
     66Fix following $code g++$$ error on OSX system:
     67$codep
     68error: no match for 'operator|=' (operand types are
     69'std::vector<bool>::reference {aka std::_Bit_reference}' and 'bool')
     70    Check[i * n + j] |= F2[i * n + k] & r[ k * n + j];
     71                     ^
     72$$
     73$lend
    6474
    6575$head 09-20$$
  • trunk/test_more/rev_sparse_hes.cpp

    r2859 r2935  
    494494                {       Check[ i * n + j] = false;
    495495                        for(k = 0; k < n; k++)
    496                                 Check[i * n + j] |= F2[i * n + k] & r[ k * n + j];
     496                        {       // some gcc versions std::vector<bool> do not support |=
     497                                // on elements (because they pack the bits).
     498                                bool tmp         = Check[i * n + j];
     499                                Check[i * n + j] = tmp | (F2[i * n + k] & r[ k * n + j]);
     500                        }
    497501                }
    498502        }
Note: See TracChangeset for help on using the changeset viewer.