LSLOpt  1.0
Static Public Member Functions | List of all members
LSLOpt::Implementation::ReparameterizeTrait< Problem, Scalar > Struct Template Reference

Reparameterizer. More...

#include <ProblemTraits.hpp>

Static Public Member Functions

static bool reparameterize (Problem &problem, Vector< Scalar > &x, Vector< Scalar > &grad)
 Reparemeterize x and recalculate the gradient. More...
 

Detailed Description

template<typename Problem, typename Scalar>
struct LSLOpt::Implementation::ReparameterizeTrait< Problem, Scalar >

Reparameterizer.

Member Function Documentation

◆ reparameterize()

template<typename Problem , typename Scalar >
static bool LSLOpt::Implementation::ReparameterizeTrait< Problem, Scalar >::reparameterize ( Problem &  problem,
Vector< Scalar > &  x,
Vector< Scalar > &  grad 
)
inlinestatic

Reparemeterize x and recalculate the gradient.

Parameters
problemThe optimization problem.
xThe current x vector, later holding the reparameterized result.
gradThe gradient storing the current and later the reparameterized result.
Returns
true If a change was performed, false otherwise.

The documentation for this struct was generated from the following file: