Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78789417
driver.inl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 23, 00:14
Size
636 B
Mime Type
text/x-c++
Expires
Sun, Aug 25, 00:14 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20100407
Attached To
rSPECMICP SpecMiCP / ReactMiCP
driver.inl
View Options
#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
Log In to Comment