Lbfgs.F
Fortran Layout.
type vec =
(float, Stdlib.Bigarray.float64_elt, Stdlib.Bigarray.fortran_layout)
Stdlib.Bigarray.Array1.t
Vectors.
val min :
?print:print ->
?work:work ->
?nsteps:int ->
?stop:(state -> bool) ->
?corrections:int ->
?factr:float ->
?pgtol:float ->
?n:int ->
?ofsl:int ->
?l:vec ->
?ofsu:int ->
?u:vec ->
(vec -> vec -> float) ->
?ofsx:int ->
vec ->
float
min f_df x
compute the minimum of the function f
given by f_df
. x
is an initial estimate of the solution vector. On termination, x
will contain the best approximation found. f_df x df
is a function that computes f(x) and its gradiant f'(x), returns f(x) and stores f'(x) in df
. The x
passed to f_df x df
is physically equal to the x
given in min f_df x
. Can raise Abnormal
.
val max :
?print:print ->
?work:work ->
?nsteps:int ->
?stop:(state -> bool) ->
?corrections:int ->
?factr:float ->
?pgtol:float ->
?n:int ->
?ofsl:int ->
?l:vec ->
?ofsu:int ->
?u:vec ->
(vec -> vec -> float) ->
?ofsx:int ->
vec ->
float
max f_df x
computes the maximum of the function f
given by f_df
. x
is an initial estimate of the solution vector. This function is provided for convenience and calls F.min
to which the reader is referred for further explanations.