[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
kinsol
input parametersFunctions whose names are of the form xd_zzzzz
take an argument of the form
(f,(i,o))
,
and functions whose names are of the form xj_zzzzz
take an argument of the form
((f,j),(i,o))
.
The parameters have these interpretations.
math
.
c
), i must
consist entirely of non-negative numbers.
kinsol
output). Its length
is taken to indicate the usual length of an output returned by
f.
If the optimization problem is being solved by either the
cj_dense
or the uj_dense
method, the Jacobian parameter
j is expected to take a list v of real numbers the length
of i as input and return a list of lists of reals as output. The
numbers are represented as described in math
. The outer list in
the output from j is required to be the length of o, while
each inner list is required to be the length of i.
The output from j is interpreted as a matrix of the form described in Two dimensional arrays. The entry in row m and column n is the partial derivative (evaluated at v) of the m-th component of the output of f with respect to the n-th item of the input list.
For optimization problems being solved by the methods of
xj_gmres
, xj_bicgs
, or
xj_tfqmr
, (i.e., where x is either c
or
u
) the Jacobian function j follows a different convention
that is meant to be more memory efficient. Given an argument of the
form (m,v)
, it returns only the m-th row of
the matrix described above instead of the whole thing. The parameter
m is a natural number less than the length of o, and
v is a list of real numbers the length of i the same as
above. The number m is encoded as described in
Representation of Numeric and Textual Data.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on December 10, 2012 using texi2html 1.82.