overview of functions provided#
// typedefs typedef float spc_; typedef double rpc_; typedef int ipc_; // structs struct bnls_control_type; struct bnls_inform_type; struct bnls_time_type; // function calls void bnls_initialize( void **data, struct bnls_control_type* control, struct bnls_inform_type* inform ); void bnls_read_specfile(struct bnls_control_type* control, const char specfile[]); void bnls_import( struct bnls_control_type* control, void **data, ipc_ *status, ipc_ n, ipc_ m_r, const char J_type[], ipc_ J_ne, const ipc_ J_row[], const ipc_ J_col[], ipc_ J_ptr_ne, const ipc_ J_ptr[] ); void bnls_import_withot_jac( struct bnls_control_type* control, void **data, ipc_ *status, ipc_ n, ipc_ m_r ); void bnls_reset_control( struct bnls_control_type* control, void **data, ipc_ *status ); void bnls_solve_with_jac( void **data, void *userdata, ipc_ *status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], ipc_(*)(ipc_, ipc_, const rpc_[], rpc_[], const void*) eval_r, ipc_ j_ne, ipc_(*)(ipc_, ipc_, ipc_, const rpc_[], rpc_[], const void*) eval_jr, const rpc_ w[] ); void bnls_solve_with_jacprod( void **data, void *userdata, ipc_ *status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], ipc_(*)(ipc_, ipc_, const rpc_[], rpc_[], const void*) eval_r, ipc_(*)(ipc_, ipc_, const rpc_[], const bool, rpc_[], const rpc_[], bool, const void*) eval_jr_prod, ipc_(*)(ipc_, ipc_, const rpc_[], const rpc_[], rpc_[], const ipc_[], ipc_, ipc_, ipc_[], ipc_, bool, const void*) eval_jr_prods, ipc_(*)(ipc_, ipc_, const rpc_[], const bool, const rpc_[], rpc_[], const ipc_[], ipc_, bool, const void*) eval_jr_sprod, const rpc_ w[] ); void bnls_solve_reverse_with_jac( void **data, ipc_ *status, ipc_ *eval_status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], ipc_ jr_ne, rpc_ Jr_val[], const rpc_ w[] ); void bnls_solve_reverse_with_jacprod( void **data, ipc_ *status, ipc_ *eval_status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], rpc_ v[], ipc_ iv[], rpc_ v[], ipc_ *lvl, ipc_ *lvu, const rpc_ p[], const ipc_ ip[], ipc_ lp, const rpc_ w[] ); void bnls_information(void **data, struct bnls_inform_type* inform, ipc_ *status); void bnls_terminate( void **data, struct bnls_control_type* control, struct bnls_inform_type* inform );
typedefs#
typedef float spc_
spc_ is real single precision
typedef double rpc_
rpc_ is the real working precision used, but may be changed to float by
defining the preprocessor variable REAL_32 or (if supported) to
__real128 using the variable REAL_128.
typedef int ipc_
ipc_ is the default integer word length used, but may be changed to
int64_t by defining the preprocessor variable INTEGER_64.
function and structure names#
The function and structure names described below are appropriate for the
default real working precision (double) and integer word length
(int32_t). To use the functions and structures with different precisions
and integer word lengths, an additional suffix must be added to their names
(and the arguments set accordingly). The appropriate suffices are:
_s for single precision (float) reals and
standard 32-bit (int32_t) integers;
_q for quadruple precision (__real128) reals (if supported) and
standard 32-bit (int32_t) integers;
_64 for standard precision (double) reals and
64-bit (int64_t) integers;
_s_64 for single precision (float) reals and
64-bit (int64_t) integers; and
_q_64 for quadruple precision (__real128) reals (if supported) and
64-bit (int64_t) integers.
Thus a call to bnls_initialize below will instead be
void bnls_initialize_s_64(void **data, struct bnls_control_type_s_64* control, int64_t *status)
if single precision (float) reals and 64-bit (int64_t) integers are
required. Thus it is possible to call functions for this package
with more that one precision and/or integer word length at same time. An
example is provided for the package expo,
and the obvious modifications apply equally here.
function calls#
void bnls_initialize( void **data, struct bnls_control_type* control, struct bnls_inform_type* inform )
Set default control values and initialize private data
Parameters:
data |
holds private internal data |
control |
is a struct containing control information (see bnls_control_type) |
inform |
is a struct containing output information (see bnls_inform_type) |
void bnls_read_specfile(struct bnls_control_type* control, const char specfile[])
Read the content of a specification file, and assign values associated with given keywords to the corresponding control parameters. An in-depth discussion of specification files is available, and a detailed list of keywords with associated default values is provided in $GALAHAD/src/bnls/BNLS.template. See also Table 2.1 in the Fortran documentation provided in $GALAHAD/doc/bnls.pdf for a list of how these keywords relate to the components of the control structure.
Parameters:
control |
is a struct containing control information (see bnls_control_type) |
specfile |
is a character string containing the name of the specification file |
void bnls_import( struct bnls_control_type* control, void **data, ipc_ *status, ipc_ n, ipc_ m_r, const char J_type[], ipc_ J_ne, const ipc_ J_row[], const ipc_ J_col[], ipc_ J_ptr_ne, const ipc_ J_ptr[] )
Import problem data into internal storage prior to solution.
Parameters:
control |
is a struct whose members provide control paramters for the remaining prcedures (see bnls_control_type) |
data |
holds private internal data |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are:
|
n |
is a scalar variable of type ipc_, that holds the number of variables. |
m_r |
is a scalar variable of type ipc_, that holds the number of residuals. |
J_type |
is a one-dimensional array of type char that specifies the unsymmetric storage scheme used for the Jacobian, \(J_r\). It should be one of ‘coordinate’, ‘sparse_by_rows’, ‘dense’ or ‘absent’, the latter if access to the Jacobian is via matrix-vector products; lower or upper case variants are allowed. |
J_ne |
is a scalar variable of type ipc_, that holds the number of entries in \(J_r\) in the sparse co-ordinate storage scheme. It need not be set for any of the other schemes. |
J_row |
is a one-dimensional array of size J_ne and type ipc_, that holds the row indices of \(J_r\) in the sparse co-ordinate and sparse column-wise storage schemes. It need not be set for any of the remaining schemes, and in this case can be NULL. |
J_col |
is a one-dimensional array of size J_ne and type ipc_, that holds the column indices of \(J_r\) in either the sparse co-ordinate, or the sparse row-wise storage scheme. It need not be set for any of the remaining schemes, and in this case can be NULL. |
J_ptr_ne |
is a scalar variable of type ipc_, that holds the length of the pointer array if sparse row or column storage scheme is used for \(J_r\). For the sparse row scheme, Jr_ptr_ne should be at least m_r+1, while for the sparse column scheme, it should be at least n+1, It should be set to 0 when the other schemes are used. |
J_ptr |
is a one-dimensional array of size m+1 and type ipc_, that holds the starting position of each row of \(J_r\), as well as the total number of entries, in the sparse row-wise storage scheme, or the starting position of each column of \(J_r\), as well as the total number of entries, in the sparse column-wise storage scheme. It need not be set when the other schemes are used, and in this case can be NULL. |
void bnls_import_without_jac( struct bnls_control_type* control, void **data, ipc_ *status, ipc_ n, ipc_ m_r )
Import problem data, excluding the structure of \(J_r(x)\), into internal storage prior to solution.
Parameters:
control |
is a struct whose members provide control paramters for the remaining prcedures (see bnls_control_type) |
data |
holds private internal data |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are:
|
n |
is a scalar variable of type ipc_, that holds the number of variables. |
m_r |
is a scalar variable of type ipc_, that holds the number of residuals. |
void bnls_reset_control( struct bnls_control_type* control, void **data, ipc_ *status )
Reset control parameters after import if required.
Parameters:
control |
is a struct whose members provide control paramters for the remaining prcedures (see bnls_control_type) |
data |
holds private internal data |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are:
|
void bnls_solve_with_jac( void **data, void *userdata, ipc_ *status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], ipc_(*)(ipc_, ipc_, const rpc_[], rpc_[], const void*) eval_r, ipc_ jr_ne, ipc_(*)(ipc_, ipc_, ipc_, const rpc_[], rpc_[], const void*) eval_jr, const rpc_ w[] )
Solve the simplex-constrained nonlinear least-squares problem when the Jacobian \(J_r(x)\) is available by function calls.
Parameters:
data |
holds private internal data |
userdata |
is a structure that allows data to be passed into the function and derivative evaluation programs. |
status |
is a scalar variable of type ipc_, that gives the entry and exit status from the package. On initial entry, status must be set to 1. Possible exit values are:
|
n |
is a scalar variable of type ipc_, that holds the number of variables. |
m_r |
is a scalar variable of type ipc_, that holds the number of residuals. |
x_l |
is a one-dimensional array of size n and type rpc_, that holds the lower bounds \(x^l\) on the variables \(x\). The j-th component of x_l, j = 0, … , n-1, contains \(x^l_j\). |
x_u |
is a one-dimensional array of size n and type rpc_, that holds the upper bounds \(x^u\) on the variables \(x\). The j-th component of x_u, j = 0, … , n-1, contains \(x^u_j\). |
x |
is a one-dimensional array of size n and type rpc_, that holds the values \(x\) of the optimization variables. The j-th component of x, j = 0, … , n-1, contains \(x_j\). |
z |
is a one-dimensional array of size n and type rpc_, that holds the values \(z\) of the dual variables. The j-th component of z, j = 0, … , n-1, contains \(z_j\). |
r |
is a one-dimensional array of size m and type rpc_, that holds the residual \(r(x)\). The i-th component of r, j = 0, … , n-1, contains \(r_j(x)\). |
g |
is a one-dimensional array of size n and type rpc_, that holds the gradient \(g = \nabla_xf(x)\) of the objective function. The j-th component of g, j = 0, … , n-1, contains \(g_j\). |
x_stat |
is a one-dimensional array of size n and type ipc_, that gives the optimal status of the problem variables. If x_stat[j] is negative, the variable \(x_j\) most likely lies at its zero lower bound, while if it is zero, \(x_j\) is free of its bound (or unconstrained). |
eval_r |
is a user-supplied function that must have the following signature: ipc_ eval_r( ipc_ n, ipc_ m_r, const rpc_ x[], rpc_ r[], const void *userdata ) The components of the residual function \(r(x)\) evaluated at x= \(x\) must be assigned to r, and the function return value set to 0. If the evaluation is impossible at x, return should be set to a nonzero value. Data may be passed into |
j_ne |
is a scalar variable of type ipc_, that holds the number of entries in the Jacobian matrix \(J_r\). |
eval_jr |
is a user-supplied function that must have the following signature: ipc_ eval_jr( ipc_ n, ipc_ m, ipc_ jr_ne, const rpc_ x[], rpc_ jr[], const void *userdata ) The components of the Jacobian \(J_r = \nabla_x r(x\)) of the residuals must be assigned to jr in the same order as presented to bnls_import, and the function return value set to 0. If the evaluation is impossible at x, return should be set to a nonzero value. Data may be passed into |
w |
is a one-dimensional array of size m_r and type rpc_ that holds the values \(w\) of the weights on the residuals in the least-squares objective function. It need not be set if the weights are all ones, and in this case can be NULL. |
void bnls_solve_with_jacprod( void **data, void *userdata, ipc_ *status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], ipc_(*)(ipc_, ipc_, const rpc_[], rpc_[], const void*) eval_r, ipc_(*)(ipc_, ipc_, const rpc_[], const bool, rpc_[], const rpc_[], bool, const void*) eval_jr_prod, ipc_(*)(ipc_, ipc_, const rpc_[], const rpc_[], rpc_[], const ipc_[], ipc_, ipc_, ipc_[], ipc_*, bool, const void *) eval_jr_prods ipc_(*)(ipc_, ipc_, const rpc_[], const bool, const rpc_[], rpc_[], const ipc_[], ipc_, bool, const void*) eval_jr_sprod, const rpc_ w[] )
Solve the simplex-constrained nonlinear least-squares problem when the products of the Jacobian \(J_r(x)\) and its transpose are available by function calls.
Parameters:
data |
holds private internal data |
userdata |
is a structure that allows data to be passed into the function and derivative evaluation programs. |
status |
is a scalar variable of type ipc_, that gives the entry and exit status from the package. On initial entry, status must be set to 1. Possible exit values are:
|
n |
is a scalar variable of type ipc_, that holds the number of variables |
m_r |
is a scalar variable of type ipc_, that holds the number of residuals. |
x_l |
is a one-dimensional array of size n and type rpc_, that holds the lower bounds \(x^l\) on the variables \(x\). The j-th component of x_l, j = 0, … , n-1, contains \(x^l_j\). |
x_u |
is a one-dimensional array of size n and type rpc_, that holds the upper bounds \(x^u\) on the variables \(x\). The j-th component of x_u, j = 0, … , n-1, contains \(x^u_j\). |
x |
is a one-dimensional array of size n and type rpc_, that holds the values \(x\) of the optimization variables. The j-th component of x, j = 0, … , n-1, contains \(x_j\). |
z |
is a one-dimensional array of size n and type rpc_, that holds the values \(z\) of the dual variables. The j-th component of z, j = 0, … , n-1, contains \(z_j\). |
r |
is a one-dimensional array of size m and type rpc_, that holds the residual \(r(x)\). The i-th component of r, j = 0, … , n-1, contains \(r_j(x)\). |
g |
is a one-dimensional array of size n and type rpc_, that holds the gradient \(g = \nabla_xf(x)\) of the objective function. The j-th component of g, j = 0, … , n-1, contains \(g_j\). |
x_stat |
is a one-dimensional array of size n and type ipc_, that gives the optimal status of the problem variables. If x_stat[j] is negative, the variable \(x_j\) most likely lies at its zero lower bound, while if it is zero, \(x_j\) is free of its bound (or unconstrained). |
eval_r |
is a user-supplied function that must have the following signature: ipc_ eval_r( ipc_ n, ipc_ m_r, const rpc_ x[], rpc_ r[], const void *userdata ) The components of the residual function \(r(x)\) evaluated at x= \(x\) must be assigned to r, and the function return value set to 0. If the evaluation is impossible at x, return should be set to a nonzero value. Data may be passed into |
eval_jr_prod |
is a user-supplied function that must have the following signature: ipc_ eval_jr_prod( ipc_ n, ipc_ m_r, const rpc_ x[], bool transpose, const rpc_ v[], rpc_ p[], bool got_jr, const void *userdata ) The product \(p = J_r(x) v\) (if tranpose is false) or \(p = J_r^T(x) v\) (if tranpose is true) bewteen the product of the Jacobian \(J_r(x) = \nabla_{x}c_(x)\) or its tranpose with the vector v= \(v\) and the vector $ \(u\) must be returned in p, and the function return value set to 0. If the evaluation is impossible at x, return should be set to a nonzero value. Data may be passed into |
eval_jr_prods |
is a user-supplied function that must have the following signature: ipc_ eval_jr_prods( ipc_ n, ipc_ m_r, const rpc_ x[], const rpc_ v[], rpc_ p[], const ipc_ iv[], ipc_ lvl, ipc_ lvu, ipc_ ip[], ipc_ *lp, bool got_jr, const void *userdata ) The product \(p = J_r(x) v\) bewteen the Jacobian \(J_r(x) = \nabla_{x}r(x)\) evaluated at x\(=x\) with the vector v=\(v\) must be returned in p, and the function return value set to 0. Only the components iv[lvl:lvu] of \(v\) will be nonzero. If ip or lp is NULL, the whole of p[0,m_r-1] should be filled. Otherwise, only the lp nonzero components p[ip[0:lp-1]] need be specified, and ip and lp returned accordingly. If the evaluation is impossible at x, return should be set to a nonzero value. Data may be passed into |
eval_jr_sprod |
is a user-supplied function that must have the following signature: ipc_ eval_jr_sprod( ipc_ n, ipc_ m_r, const rpc_ x[], const bool transpose, const rpc_ v[], rpc_ p[], const ipc_ free[], ipc_ n_free, bool got_jr, const void *userdata ) The product \(J_r(x) v\) (if tranpose is false) or \(J_r^T(x) v\) (if tranpose is true) bewteen the Jacobian \(J_r(x) = \nabla_{x}r(x)\) or its tranpose with the vector v=\(v\) must be returned in p, and the function return value set to 0. If transpose is false, only the components free[0 : n_free-1] of \(v\) will be nonzero, while if transpose is true, only the components free[0 : n_free-1] of p should be set. If the evaluation is impossible at x, return should be set to a nonzero value. Data may be passed into |
w |
is a one-dimensional array of size m_r and type rpc_ that holds the values \(w\) of the weights on the residuals in the least-squares objective function. It need not be set if the weights are all ones, and in this case can be NULL. |
void bnls_solve_reverse_with_jac( void **data, ipc_ *status, ipc_ *eval_status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], ipc_ jr_ne, rpc_ Jr_val[], const rpc_ w[] )
Solve the simplex-constrained nonlinear least-squares problem when the Jacobian \(J_r(x)\) may be computed by the calling program.
Parameters:
data |
holds private internal data |
status |
is a scalar variable of type ipc_, that gives the entry and exit status from the package. On initial entry, status must be set to 1. Possible exit values are:
|
eval_status |
is a scalar variable of type ipc_, that is used to indicate if objective function/gradient/Hessian values can be provided (see above) |
n |
is a scalar variable of type ipc_, that holds the number of variables |
m_r |
is a scalar variable of type ipc_, that holds the number of residuals. |
x_l |
is a one-dimensional array of size n and type rpc_, that holds the lower bounds \(x^l\) on the variables \(x\). The j-th component of x_l, j = 0, … , n-1, contains \(x^l_j\). |
x_u |
is a one-dimensional array of size n and type rpc_, that holds the upper bounds \(x^u\) on the variables \(x\). The j-th component of x_u, j = 0, … , n-1, contains \(x^u_j\). |
x |
is a one-dimensional array of size n and type rpc_, that holds the values \(x\) of the optimization variables. The j-th component of x, j = 0, … , n-1, contains \(x_j\). |
z |
is a one-dimensional array of size n and type rpc_, that holds the values \(z\) of the dual variables. The j-th component of z, j = 0, … , n-1, contains \(z_j\). |
r |
is a one-dimensional array of size m and type rpc_, that holds the residual \(r(x)\). The i-th component of r, j = 0, … , n-1, contains \(r_j(x)\). See status = 2, above, for more details. |
g |
is a one-dimensional array of size n and type rpc_, that holds the gradient \(g = \nabla_xf(x)\) of the objective function. The j-th component of g, j = 0, … , n-1, contains \(g_j\). |
x_stat |
is a one-dimensional array of size n and type ipc_, that gives the optimal status of the problem variables. If x_stat[j] is negative, the variable \(x_j\) most likely lies at its zero lower bound, while if it is zero, \(x_j\) is free of its bound (or unconstrained). |
jr_ne |
is a scalar variable of type ipc_, that holds the number of entries in the Jacobian matrix \(J_r\). |
Jr_val |
is a one-dimensional array of size jr_ne and type rpc_, that holds the values of the entries of the Jacobian matrix \(J_r\) in any of the available storage schemes. See status = 3, above, for more details. |
w |
is a one-dimensional array of size m_r and type rpc_ that holds the values \(w\) of the weights on the residuals in the least-squares objective function. It need not be set if the weights are all ones, and in this case can be NULL. |
void bnls_solve_reverse_with_jacprod( void **data, ipc_ *status, ipc_ *eval_status, ipc_ n, ipc_ m_r, rpc_ x_l[], rpc_ x_u[], rpc_ x[], rpc_ z[], rpc_ r[], rpc_ g[], ipc_ x_stat[], rpc_ v[], ipc_ iv[], rpc_ v[], ipc_ *lvl, ipc_ *lvu, const rpc_ p[], const ipc_ ip[], ipc_ lp, const rpc_ w[] )
Solve the simplex-constrained nonlinear least-squares problem when the products of the Jacobian \(J_r(x)\) and its transpose with specified vectors may be computed by the calling program.
Parameters:
data |
holds private internal data |
status |
is a scalar variable of type ipc_, that gives the entry and exit status from the package. On initial entry, status must be set to 1. Possible exit values are:
|
eval_status |
is a scalar variable of type ipc_, that is used to indicate if objective function/gradient/Hessian values can be provided (see above) |
n |
is a scalar variable of type ipc_, that holds the number of variables |
m_r |
is a scalar variable of type ipc_, that holds the number of residuals. |
x_l |
is a one-dimensional array of size n and type rpc_, that holds the lower bounds \(x^l\) on the variables \(x\). The j-th component of x_l, j = 0, … , n-1, contains \(x^l_j\). |
x_u |
is a one-dimensional array of size n and type rpc_, that holds the upper bounds \(x^u\) on the variables \(x\). The j-th component of x_u, j = 0, … , n-1, contains \(x^u_j\). |
x |
is a one-dimensional array of size n and type rpc_, that holds the values \(x\) of the optimization variables. The j-th component of x, j = 0, … , n-1, contains \(x_j\). |
z |
is a one-dimensional array of size n and type rpc_, that holds the values \(z\) of the dual variables. The j-th component of z, j = 0, … , n-1, contains \(z_j\). |
r |
is a one-dimensional array of size m and type rpc_, that holds the residual \(r(x)\). The i-th component of r, j = 0, … , n-1, contains \(r_j(x)\). See status = 2, above, for more details. |
g |
is a one-dimensional array of size n and type rpc_, that holds the gradient \(g = \nabla_xf(x)\) of the objective function. The j-th component of g, j = 0, … , n-1, contains \(g_j\). |
x_stat |
is a one-dimensional array of size n and type ipc_, that gives the optimal status of the problem variables. If x_stat[j] is negative, the variable \(x_j\) most likely lies at its zero lower bound, while if it is zero, \(x_j\) is free of its bound (or unconstrained). |
v |
is a one-dimensional array of size max(n,m_r) and type rpc_, that is used for reverse communication. See status = 4, 5, 7 and 8 above for more details. |
iv |
is a one-dimensional array of size max(n,m_r) and type ipc_, that is used for reverse communication. See status = 7 and 8 above for more details. |
lvl |
is a scalar variable of type ipc_, that is used for reverse communication. See status = 7 and 8 above for more details. |
lvu |
is a scalar variable of type ipc_, that is used for reverse communication. See status = 7 and 8 above for more details. |
index |
is a scalar variable of type ipc_, that is used for reverse communication. See status = 6 above for more details. |
p |
is a one-dimensional array of size max(n,m_r) and type rpc_, that is used for reverse communication. See status = 4 to 8 above for more details. |
ip |
is a one-dimensional array of size n and type ipc_, that is used for reverse communication. See status = 6 above for more details. |
lp |
is a scalar variable of type ipc_, that is used for reverse communication. See status = 6 above for more details. |
w |
is a one-dimensional array of size m_r and type rpc_ that holds the values \(w\) of the weights on the residuals in the least-squares objective function. It need not be set if the weights are all ones, and in this case can be NULL. |
void bnls_information(void **data, struct bnls_inform_type* inform, ipc_ *status)
Provides output information
Parameters:
data |
holds private internal data |
inform |
is a struct containing output information (see bnls_inform_type) |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are (currently):
|
void bnls_terminate( void **data, struct bnls_control_type* control, struct bnls_inform_type* inform )
Deallocate all internal private storage
Parameters:
data |
holds private internal data |
control |
is a struct containing control information (see bnls_control_type) |
inform |
is a struct containing output information (see bnls_inform_type) |