The OpenD Programming Language

optimizeLeastSquaresS

Low level extern(D) instatiation.

pragma(inline, false) @trusted nothrow @nogc pure
optimizeLeastSquaresS
(
scope const ref LeastSquaresSettings!float settings
,
size_t m
,
Slice!(float*) x
,
Slice!(const(float)*) l
,
Slice!(const(float)*) u
,
Slice!(float*) work
,,,
scope LeastSquaresJacobian!float g = null
,)

Parameters

settings LeastSquaresSettings!float

Levenberg-Marquardt data structure

m size_t

length (dimension) of y = f(x)

x Slice!(float*)

initial (in) and final (out) X value

l Slice!(const(float)*)

lower X bound

u Slice!(const(float)*)

upper X bound

f LeastSquaresFunction!float

n -> m function

g LeastSquaresJacobian!float

m × n Jacobian (optional)

tm LeastSquaresThreadManager

thread manager for finite difference jacobian approximation in case of g is null (optional)

work Slice!(float*)

floating point workspace length of at least mir_least_squares_work_length

iwork Slice!(lapackint*)

floating point workspace length of at least mir_least_squares_iwork_length

Meta