Prev Next omp_delete_array

@(@\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}} }@)@
Return A Raw Array to The Available Memory for a Thread

Deprecated 2011-08-31
Use the function thread_alloc::delete_array instead.

Syntax
# include <cppad/utility/omp_alloc.hpp>
omp_alloc::delete_array(array) .

Purpose
Returns memory corresponding to a raw array (create by omp_create_array ) to the omp_available memory pool for the current thread.

Type
The type of the elements of the array.

array
The argument array has prototype
     
Typearray
It is a value returned by omp_create_array and not yet deleted. The Type destructor is called for each element in the array.

Thread
The current thread must be the same as when omp_create_array returned the value array . There is an exception to this rule: when the current execution mode is sequential (not parallel ) the current thread number does not matter.

Delta
The amount of memory omp_inuse will decrease by delta , and the omp_available memory will increase by delta , where delta is the same as for the corresponding call to create_array.

Example
omp_alloc.cpp
Input File: cppad/utility/omp_alloc.hpp