Prev Next

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@This is cppad-20221105 documentation. Here is a link to its current documentation .
Multi-Threading Harmonic Summation Example / Test

Source File
All of the routines below are located in the file
 
    example/multi_thread/harmonic.cpp

Contents
harmonic_commonCommon Variables Used by Multi-threading Sum of 1/i
harmonic_setupSet Up Multi-threading Sum of 1/i
harmonic_workerDo One Thread's Work for Sum of 1/i
harmonic_takedownTake Down Multi-threading Sum of 1/i
harmonic_sumMulti-Threaded Implementation of Summation of 1/i
harmonic_timeTiming Test of Multi-Threaded Summation of 1/i

Input File: example/multi_thread/harmonic.omh