Struct DynamicFunctorNoJac#

Inheritance Relationships#

Base Type#

Struct Documentation#

struct DynamicFunctorNoJac : public Karana::Math::Functor<double, Eigen::Dynamic, Eigen::Dynamic>#

Functor for dynamic Eigen matrices with no Jacobian provided.

Public Types

using Base = Functor<double, Eigen::Dynamic, Eigen::Dynamic>#

Alias to the base functor.

Public Functions

inline DynamicFunctorNoJac(int dim1, int dim2, cost_fn f)#

Constructor for DynamicFunctorNoJac.

Parameters:
  • dim1 – Number of inputs.

  • dim2 – Number of outputs.

  • f – Cost function.

inline int operator()(const Vec &x, Vec &fvec) const#

Evaluate the cost function.

Parameters:
  • x – Input vector.

  • fvec – Output vector.

Returns:

Status code (0 for success).

Public Members

cost_fn _f#

The cost function.

jac_fn _j#

The Jacobian function.