lines 6-61 of file: python/cmpad/llsq_obj.py {xrst_begin py_llsq_obj} Python Linear Least Squares Objective ##################################### Syntax ****** | |tab| *llsq* = ``cmpad.llsq_obj`` ( *like_numpy* ) | |tab| *llsq* . ``setup`` ( *option* ) | |tab| *obj* = *llsq* ( *x* ) Prototype ********* {xrst_literal # BEGIN PROTOTYPE # END PROTOTYPE } Algorithm ********* This is a python implementation of the :ref:`llsq_obj-name` algorithm . It is vectorized using arrays that act like numpy arrays. Different array types are used by the different AD packages. like_numpy ********** This is a :ref:`like_numpy-name` class. It is used to vectorize this algorithm. n_arg ***** see :ref:`llsq_obj@option@n_arg` . n_other ******* see :ref:`llsq_obj@option@n_other` . This is the number of elements that are computed by one *like_numpy* operation of the llsq_obj algorithm. {xrst_toc_hidden python/xam/llsq_obj.py } Example ******* :ref:`xam_llsq_obj.py-name` contains an example and test of ``llsq_obj`` . Source Code *********** The code below is the implementation of this function: {xrst_literal # BEGIN PYTHON # END PYTHON } {xrst_end py_llsq_obj}