Page MenuHomec4science

driver.inl
No OneTemporary

File Metadata

Created
Sat, Jun 29, 22:42

driver.inl

#include "driver.hpp" // syntaxic coloration only
namespace specmicp {
namespace dfpmsolver {
template <class Program, class Options, class Performance>
scalar_t Driver<Program, Options, Performance>::is_step_too_long(Vector& update)
{
double steplength = (scaling().asDiagonal()*update).norm();
if (steplength > get_options().maximum_step_length)
{
get_perfs().maximum_step_taken = true;
update = (get_options().maximum_step_length / steplength) * update;
steplength = get_options().maximum_step_length;
}
return steplength;
}
} // end namespace dfpmsolver
} // end namespace specmicp

Event Timeline