naginterfaces.library.quad.dim1_​gen_​vec_​multi_​dimreq

naginterfaces.library.quad.dim1_gen_vec_multi_dimreq(ni, iopts, opts)[source]

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

For full information please refer to the NAG Library document for d01rc

https://support.nag.com/numeric/nl/nagdoc_30/flhtml/d01/d01rcf.html

Parameters
niint

, the number of integrals which will be approximated in the subsequent call to dim1_gen_vec_multi_rcomm().

ioptsint, array-like, shape

The integer option array as returned by opt_set().

optsfloat, array-like, shape

The real option array as returned by opt_set().

Returns
lenxrqint

, the minimum dimension of the array that can be used in a subsequent call to dim1_gen_vec_multi_rcomm().

ldfmrqint

, the minimum leading dimension of the array that can be used in a subsequent call to dim1_gen_vec_multi_rcomm().

sdfmrqint

, the minimum second dimension of the array that can be used in a subsequent call to dim1_gen_vec_multi_rcomm().

Note: the minimum dimension of the array is .

licminint

, the minimum dimension of the array that must be passed to dim1_gen_vec_multi_rcomm() to enable it to calculate a single approximation to all the integrals over the interval with initial segments.

licmaxint

the dimension of the array that must be passed to dim1_gen_vec_multi_rcomm() to enable it to exhaust the adaptive process controlled by the currently set options for the integrals over the interval with initial segments.

lcminint

, the minimum dimension of the array that must be passed to dim1_gen_vec_multi_rcomm() to enable it to calculate a single approximation to all the integrals over the interval with initial segments.

lcmaxint

, the dimension of the array that must be passed to dim1_gen_vec_multi_rcomm() to enable it to exhaust the adaptive process controlled by the currently set options for the integrals over the interval with initial segments.

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

One of the option arrays or has become corrupted. Re-initialize the arrays using opt_set().

Notes

dim1_gen_vec_multi_dimreq returns the minimum dimension of the arrays (), (), () and () that must be passed to dim1_gen_vec_multi_rcomm() to enable the integration to commence given options currently set for the integrands. dim1_gen_vec_multi_dimreq also returns the upper bounds and for the dimension of the arrays and , that could possibly be required with the chosen options.

All the minimum values , , , and , and subsequently all the maximum values and may be affected if different options are set, and hence dim1_gen_vec_multi_dimreq should be called after any options are set, and before the first call to dim1_gen_vec_multi_rcomm().

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.