?trnlspbc_check
?trnlspbc_check
Checks the correctness of handle and arrays containing Jacobian matrix, objective function, lower and upper bounds, and stopping criteria.
Syntax
MKL_INT
strnlspbc_check
(
_TRNSPBC_HANDLE_t
*
handle
,
const
MKL_INT
*
n
,
const
MKL_INT
*
m
,
const
float
*
fjac
,
const
float
*
fvec
,
const
float
*
LW
,
const
float
*
UP
,
const
float
*
eps
,
MKL_INT
*
info
);
MKL_INT
dtrnlspbc_check
(
_TRNSPBC_HANDLE_t
*
handle
,
const
MKL_INT
*
n
,
const
MKL_INT
*
m
,
const
double
*
fjac
,
const
double
*
fvec
,
const
double
*
LW
,
const
double
*
UP
,
const
double
*
eps
,
MKL_INT
*
info
);
Include Files
- mkl.h
Description
The
?trnlspbc_check
routine checks the arrays passed into the solver as input parameters. If an array contains any INF
or NaN
values, the routine sets the flag in output array info
(see the description of the values returned in the Output Parameters section for the
.info
array)Input Parameters
- handle
- Type._TRNSPBC_HANDLE_t
- n
- Length ofx.
- m
- Length ofF(x).
- fjac
- Array of sizembyn. Contains the Jacobian matrix of the function.
- fvec
- Array of sizem. Contains the function values atX, wherefvec[i]= (.y–if(ix))
- LW
- Array of sizen.Contains low bounds forx(lw<ix).i
- UP
- Array of sizen.Contains upper bounds forx(up>ix).i
- eps
- Array of size 6; contains stopping criteria.See the values in the Description section of the?trnlspbc_init.
Output Parameters
- info
- Array of size 6.Results of input parameter checking:ParameterUsed forValueDescriptioninfo[0]Flags forhandle0The handle is valid.1The handle is not allocated.info[1]Flags forfjac0Thefjacarray is valid.1Thefjacarray is not allocated2Thefjacarray containsNaN.3Thefjacarray containsInf.info[2]Flags forfvec0Thefvecarray is valid.1Thefvecarray is not allocated2Thefvecarray containsNaN.3Thefvecarray containsInf.info[3]Flags forLW0TheLWarray is valid.1TheLWarray is not allocated2TheLWarray containsNaN.3TheLWarray containsInf.4The lower bound is greater than the upper bound.info[4]Flags forup0Theuparray is valid.1Theuparray is not allocated2Theuparray containsNaN.3Theuparray containsInf.4The upper bound is less than the lower bound.info[5]Flags foreps0Theepsarray is valid.1Theepsarray is not allocated2Theepsarray containsNaN.3Theepsarray containsInf.4Theepsarray contains a value less than or equal to zero.
- res
- Information about completion of the task.res=TR_SUCCESS- the routine completed the task normally.TR_SUCCESSis defined in themkl_rci.hinclude file.