Changeset 3716


Ignore:
Timestamp:
Aug 30, 2015 10:06:46 AM (5 years ago)
Author:
bradbell
Message:

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 668f6e23b6765e289257953ca0c9b64a75be3a6d
end hash code: 54847d046ca10b16893f91cf125b2debdd697748

commit 54847d046ca10b16893f91cf125b2debdd697748
Author: Brad Bell <bradbell@…>
Date: Sun Aug 30 06:58:57 2015 -0700

Remove invisible white space.

commit 4ce3525866ee247554651869389f638add9fd076
Author: Brad Bell <bradbell@…>
Date: Sun Aug 30 06:58:44 2015 -0700

independent.hpp: Improve discussion of parallel mode, remove redundant index commands.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cppad/local/independent.hpp

    r3607 r3716  
    77
    88CppAD is distributed under multiple licenses. This distribution is under
    9 the terms of the 
     9the terms of the
    1010                    Eclipse Public License Version 1.0.
    1111
     
    2828$$
    2929
    30 $index Independent$$
    31 $index start, recording$$
    32 $index recording, start$$
    33 $index variable, independent$$
    34 
    3530$section Declare Independent Variables and Start Recording$$
    3631
     
    4237
    4338$head Purpose$$
    44 Start recording 
     39Start recording
    4540$cref/AD of Base/glossary/AD of Base/$$ operations
    4641with $icode x$$ as the independent variable vector.
    47 Once the 
     42Once the
    4843$cref/operation sequence/glossary/Operation/Sequence/$$ is completed,
    4944it must be transferred to a function object; see below.
     
    7065$cref abort_recording$$.
    7166Between when the recording is started and when it stopped,
    72 we refer to the elements of $icode x$$, 
     67we refer to the elements of $icode x$$,
    7368and the values that depend on the elements of $icode x$$,
    74 as $codei%AD<%Base%>%$$ variables. 
     69as $codei%AD<%Base%>%$$ variables.
    7570
    7671$head x$$
     
    8580
    8681$head abort_op_index$$
    87 $index abort_op_index$$
    88 It specifies the operator index at which the execution is be aborted
     82It specifies the operator index at which the execution is be aborted
    8983by calling the CppAD $cref/error handler/ErrorHandler/$$.
    9084When this error handler leads to an assert, the user
    91 can inspect the call stack to see the source code corresponding to 
     85can inspect the call stack to see the source code corresponding to
    9286this operator index; see
    9387$cref/purpose/compare_change/op_index/Purpose/$$.
     
    10397
    10498$head Parallel Mode$$
    105 $index parallel, Independent$$
    106 $index Independent, parallel$$
    107 The call to $code Independent$$,
    108 and the corresponding call to
     99Each thread can have one, and only one, active recording.
     100A call to $code Independent$$ starts the recording for the current thread.
     101The recording must be stopped by a corresponding call to
    109102$codei%
    110103        ADFun<%Base%> %f%( %x%, %y%)
    111104%$$
    112 or 
     105or
    113106$codei%
    114107        %f%.Dependent( %x%, %y%)
    115108%$$
    116 or $cref abort_recording$$,
    117 must be preformed by the same thread; i.e.,
     109or $cref abort_recording$$
     110preformed by the same thread; i.e.,
    118111$cref/thread_alloc::thread_num/ta_thread_num/$$ must be the same.
    119112
     
    153146        Rec_.set_abort_op_index(abort_op_index);
    154147
    155         // mark the beginning of the tape and skip the first variable index 
     148        // mark the beginning of the tape and skip the first variable index
    156149        // (zero) because parameters use taddr zero
    157150        CPPAD_ASSERT_NARG_NRES(BeginOp, 1, 1);
     
    185178        );
    186179        ADTape<Base>* tape = ADBase::tape_manage(tape_manage_new);
    187         tape->Independent(x, abort_op_index); 
     180        tape->Independent(x, abort_op_index);
    188181}
    189182template <typename VectorAD>
     
    191184{       size_t abort_op_index = 0;
    192185        Independent(x, abort_op_index); }
    193 } 
     186}
    194187// END CppAD namespace
    195188
  • trunk/omh/whats_new/whats_new_15.omh

    r3715 r3716  
    7171Make $cref atomic_norm_sq.cpp$$ an example with no set sparsity
    7272and $cref atomic_reciprocal.cpp$$ an example with no bool sparsity.
     73$lnext
     74Improve discussion of $code Independent$$ and
     75$cref/parallel mode/Independent/Parallel Mode/$$.
    7376$lend
    7477
Note: See TracChangeset for help on using the changeset viewer.