# NAG CL Interfaced01rcc (dim1_​gen_​vec_​multi_​dimreq)

Settings help

CL Name Style:

## 1Purpose

The dimension of the arrays that must be passed as actual arguments to d01rac are dependent upon a number of factors. d01rcc returns the correct size of these arrays enabling d01rac to be called successfully.

## 2Specification

 #include
 void d01rcc (Integer ni, Integer *lenxrq, Integer *ldfmrq, Integer *sdfmrq, Integer *licmin, Integer *licmax, Integer *lcmin, Integer *lcmax, const Integer iopts[], const double opts[], NagError *fail)
The function may be called by the names: d01rcc, nag_quad_dim1_gen_vec_multi_dimreq or nag_quad_1d_gen_vec_multi_dimreq.

## 3Description

d01rcc returns the minimum dimension of the arrays x ($\mathit{lenxrq}$), fm ($\mathit{ldfmrq}×\mathit{sdfmrq}$), icom ($\mathit{licmin}$) and com ($\mathit{lcmin}$) that must be passed to d01rac to enable the integration to commence given options currently set for the ni integrands. d01rcc also returns the upper bounds $\mathit{licmax}$ and $\mathit{lcmax}$ for the dimension of the arrays icom and com, that could possibly be required with the chosen options.
All the minimum values $\mathit{lenxrq}$, $\mathit{ldfmrq}$, $\mathit{sdfmrq}$, $\mathit{licmin}$ and $\mathit{lcmin}$, and subsequently all the maximum values $\mathit{licmax}$ and $\mathit{lcmax}$ may be affected if different options are set, and hence d01rcc should be called after any options are set, and before the first call to d01rac.
A segment is here defined as a (possibly maximal) subset of the domain of integration. During subdivision, a segment is bisected into two new segments.

None.

## 5Arguments

1: $\mathbf{ni}$Integer Input
On entry: ${n}_{i}$, the number of integrals which will be approximated in the subsequent call to d01rac.
Constraint: ${\mathbf{ni}}>0$.
2: $\mathbf{lenxrq}$Integer * Output
On exit: $\mathit{lenxrq}$, the minimum dimension of the array x that can be used in a subsequent call to d01rac.
3: $\mathbf{ldfmrq}$Integer * Output
On exit: $\mathit{ldfmrq}$, the minimum stride separating row elements of the matrix of values stored in the array fm that can be used in a subsequent call to d01rac.
4: $\mathbf{sdfmrq}$Integer * Output
On exit: $\mathit{sdfmrq}$, the minimum number of columns of the matrix of values stored in the array fm that can be used in a subsequent call to d01rac.
Note: the minimum dimension of the array fm is $\mathit{ldfmrq}×\mathit{sdfmrq}$.
5: $\mathbf{licmin}$Integer * Output
On exit: $\mathit{licmin}$, the minimum dimension of the array icom that must be passed to d01rac to enable it to calculate a single approximation to all the ${n}_{i}$ integrals over the interval $\left[a,b\right]$ with ${s}_{\mathit{pri}}$ initial segments.
6: $\mathbf{licmax}$Integer * Output
On exit: $\mathit{licmax}$ the dimension of the array icom that must be passed to d01rac to enable it to exhaust the adaptive process controlled by the currently set options for the ${n}_{i}$ integrals over the interval $\left[a,b\right]$ with ${s}_{\mathit{pri}}$ initial segments.
7: $\mathbf{lcmin}$Integer * Output
On exit: $\mathit{lcmin}$, the minimum dimension of the array com that must be passed to d01rac to enable it to calculate a single approximation to all the ${n}_{i}$ integrals over the interval $\left[a,b\right]$ with ${s}_{\mathit{pri}}$ initial segments.
8: $\mathbf{lcmax}$Integer * Output
On exit: $\mathit{lcmax}$, the dimension of the array com that must be passed to d01rac to enable it to exhaust the adaptive process controlled by the currently set options for the ${n}_{i}$ integrals over the interval $\left[a,b\right]$ with ${s}_{\mathit{pri}}$ initial segments.
9: $\mathbf{iopts}\left[\mathit{dim}\right]$const Integer Communication Array
Note: the dimension, $\mathit{dim}$, of this array is dictated by the requirements of associated functions that must have been previously called. This array MUST be the same array passed as argument iopts in the previous call to d01zkc.
On entry: the integer option array as returned by d01zkc.
Constraint: iopts must not be changed between calls to d01zkc, d01zlc, d01rcc and d01rac.
10: $\mathbf{opts}\left[\mathit{dim}\right]$const double Communication Array
Note: the dimension, $\mathit{dim}$, of this array is dictated by the requirements of associated functions that must have been previously called. This array MUST be the same array passed as argument opts in the previous call to d01zkc.
On entry: the real option array as returned by d01zkc.
Constraint: opts must not be changed between calls to d01zkc, d01zlc, d01rcc and d01rac.
11: $\mathbf{fail}$NagError * Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).

## 6Error Indicators and Warnings

NE_ALLOC_FAIL
Dynamic memory allocation failed.
See Section 3.1.2 in the Introduction to the NAG Library CL Interface for further information.
On entry, argument $⟨\mathit{\text{value}}⟩$ had an illegal value.
NE_INT
On entry, ${\mathbf{ni}}=⟨\mathit{\text{value}}⟩$.
Constraint: ${\mathbf{ni}}>0$.
NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
See Section 7.5 in the Introduction to the NAG Library CL Interface for further information.
NE_INVALID_OPTION
One of the option arrays iopts or opts has become corrupted. Re-initialize the arrays using d01zkc.
NE_NO_LICENCE
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library CL Interface for further information.

Not applicable.

## 8Parallelism and Performance

d01rcc is not threaded in any implementation.