Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73954085
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
Thu, Jul 25, 11:30
Size
636 B
Mime Type
text/x-c++
Expires
Sat, Jul 27, 11:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19304688
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