A step of the cgnonl_native implementation. Called by cgnonl_nonlinear_cg.
See the file header for the source the module follows.
Usage
cgnonl_line_search_fr(
f,
grad,
x,
p,
f0,
g0,
est = NULL,
max_double = 60L,
max_cubic = 40L,
tol = 1e-12
)Arguments
- f
Accepted by the signature and not used anywhere in the body.
- grad
Accepted by the signature and not used anywhere in the body.
- x
A vector; its length is taken.
- p
Numeric; combined arithmetically in the body.
- f0
Numeric; combined arithmetically in the body.
- g0
Passed to
.cgnonl_dot.- est
Optional; may be
NULL. Coerced to numeric by the body, withas.numeric.- max_double
A count; the body uses it as
seq_len(...). Defaults to60L.- max_cubic
A count; the body uses it as
seq_len(...). Defaults to40L.- tol
Numeric; combined arithmetically in the body. Defaults to
1e-12.
