lines 6-60 of file: lib/python/cppad_py/fun_jacobian.py # {xrst_begin py_fun_jacobian} # {xrst_comment_ch #} # # Jacobian of an AD Function # ########################## # # Syntax # ****** # *J* = *f*\ ``.jacobian`` ( *x* ) # # f # * # This is either a # :ref:`d_fun` or # :ref:`a_fun` function object. # Upon return, the zero order # :ref:`taylor_coefficients` # in *f* correspond to the value of *x* . # The other Taylor coefficients in *f* are unspecified. # # f(x) # **** # We use the notation :math:`f: \B{R}^n \rightarrow \B{R}^m` # for the function corresponding to *f* . # Note that *n* is the size of :ref:`ax` # and *m* is the size of :ref:`ay` # in to the constructor for *f* . # # x # * # If *f* is a ``d_fun`` or ``a_fun`` , # *x* is a numpy vector with ``float`` ( ``a_double`` ) elements # and size *n* . # It specifies the argument value at we are computing the Jacobian # :math:`f'(x)`. # # J # * # The result is a numpy matrix with ``float`` ( ``a_double`` ) elements, # *m* rows, and ``n`` columns. # For *i* between zero and *m* -1 # and *j* between zero and *n* -1 , # # .. math:: # # J [ i, j ] = \frac{ \partial f_i }{ \partial x_j } (x) # # {xrst_toc_hidden # example/python/core/fun_jacobian_xam.py # } # Example # ******* # :ref:`fun_jacobian_xam.py-name` # # {xrst_end py_fun_jacobian}