28#ifndef _math_optimize_scextrap_h
29#define _math_optimize_scextrap_h
31#include <util/class/class.h>
32#include <util/state/state.h>
33#include <util/keyval/keyval.h>
89 void set_error(
double e) { error_ = e; errorset_ = 1; }
101 void set_tolerance(
double t) { tolerance_ = t; }
102 double tolerance() {
return tolerance_; }
103 double error() {
return error_; }
105 int converged() {
return errorset_? error_ <= tolerance_ : 0; }
110 virtual int extrapolate(
const Ref<SCExtrapData>& data,
111 const Ref<SCExtrapError>& error) = 0;
117 virtual void start_extrapolation();
A template class that maintains references counts.
Definition ref.h:361
Base class for objects that can save/restore state.
Definition state.h:45
Restores fundamental and user-defined types from images created with StateOut.
Definition statein.h:79
Serializes fundamental and user-defined types.
Definition stateout.h:71
Contains all MPQC code up to version 3.
Definition mpqcin.h:14