Prev Next ta_num_threads

@(@\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 .
Get Number of Threads

Syntax
number = thread_alloc::num_threads()

Purpose
Determine the number of threads as set during parallel_setup .

number
The return value number has prototype
    size_t 
number
and is equal to the value of num_threads in the previous call to parallel_setup . If there was no such previous call, the value one is returned.

Example
The example and test thread_alloc.cpp uses this routine.
Input File: include/cppad/utility/thread_alloc.hpp