"Short-call" wrapper for the odr
routine including very few optional arguments.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
procedure(fcn_tc) | :: | fcn |
User-supplied subroutine for evaluating the model. |
|||
integer(kind=c_int), | intent(in) | :: | n |
Number of observations. |
||
integer(kind=c_int), | intent(in) | :: | m |
Number of columns of data in the independent variable. |
||
integer(kind=c_int), | intent(in) | :: | np |
Number of function parameters. |
||
integer(kind=c_int), | intent(in) | :: | nq |
Number of responses per observation. |
||
real(kind=c_double), | intent(inout) | :: | beta(np) |
Function parameters. |
||
real(kind=c_double), | intent(in) | :: | y(n,nq) |
Dependent variable. Unused when the model is implicit. |
||
real(kind=c_double), | intent(in) | :: | x(n,m) |
Explanatory variable. |
||
real(kind=c_double), | intent(inout), | optional | :: | delta(n,m) |
Error in the |
|
real(kind=c_double), | intent(in), | optional | :: | lower(np) |
Lower bound on |
|
real(kind=c_double), | intent(in), | optional | :: | upper(np) |
Upper bound on |
|
integer(kind=c_int), | intent(in), | optional | :: | job |
Variable controlling initialization and computational method. |
subroutine odr_short_c(& fcn, & n, m, np, nq, & beta, y, x, & delta, & lower, upper, & job) bind(C) !! "Short-call" wrapper for the `odr` routine including very few optional arguments. procedure(fcn_tc) :: fcn !! User-supplied subroutine for evaluating the model. integer(c_int), intent(in) :: n !! Number of observations. integer(c_int), intent(in) :: m !! Number of columns of data in the independent variable. integer(c_int), intent(in) :: np !! Number of function parameters. integer(c_int), intent(in) :: nq !! Number of responses per observation. real(c_double), intent(inout) :: beta(np) !! Function parameters. real(c_double), intent(in) :: y(n, nq) !! Dependent variable. Unused when the model is implicit. real(c_double), intent(in) :: x(n, m) !! Explanatory variable. real(c_double), intent(inout), optional :: delta(n, m) !! Error in the `x` data. Initial guess on input and estimated value on output. real(c_double), intent(in), optional :: lower(np) !! Lower bound on `beta`. real(c_double), intent(in), optional :: upper(np) !! Upper bound on `beta`. integer(c_int), intent(in), optional :: job !! Variable controlling initialization and computational method. call odr(fcn, n, m, np, nq, beta, y, x, & delta=delta, & lower=lower, upper=upper, & job=job) end subroutine odr_short_c