Page MenuHomec4science

driver.inl
No OneTemporary

File Metadata

Created
Sat, May 18, 18:50

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 = 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