cpp_llsq_obj

View page source

C++ Linear Least Squares Objective

Syntax

      # include <cmpad/algo/llsq_obj.hpp>
      cmpad::llsq_obj < Vector > llsq
      llsq . setup ( option )
      y = llsq ( x )

Class Declaration

template <class Vector> class llsq_obj : public fun_obj<Vector>

Algo

This is an cpp_fun_obj interface to the llsq_obj Algorithm . We use Algo for the type of this algorithm; i.e.,

      typedef cmpad::llsq_obj < Vector > Algo

Vector

This is a fun_obj Vector type.

vector_type

The type Algo :: vector_type is the same as Vector . This is useful when Algo is a template parameter.

scalar_type

The type Algo :: scalar_type is the type of the elements of Vector ; i.e., Vector :: value_type . This is also useful when Algo is a template parameter.

llsq

The object llsq is a fun that computes the function corresponding to the llsq_obj algorithm.

option

This is an option_t object that specifies n_arg and n_other .

n_arg

see n_arg .

n_other

see n_other .

Example

The file xam_llsq_obj.cpp contains an example and test of llsq_obj .

Source Code

cpp_llsq_obj.hpp is the source code for this algorithm.