48 const int theNumRestartCycles,
49 const int theTotalNumIters,
50 const std::map<std::string, double>& theExtraData) :
51 result_ (validatedReturnType (theResult)),
52 numRestartCycles_ (requireNonNegInt (theNumRestartCycles)),
53 totalNumIters_ (requireNonNegInt (theTotalNumIters)),
54 extraData_ (theExtraData)
59 const int theNumRestartCycles,
60 const int theTotalNumIters) :
61 result_ (validatedReturnType (theResult)),
62 numRestartCycles_ (requireNonNegInt (theNumRestartCycles)),
63 totalNumIters_ (requireNonNegInt (theTotalNumIters))
70 std::invalid_argument,
71 "Invalid ReturnType enum value " << ret <<
". "
72 "Valid values are Converged=" <<
Converged <<
" and "
81 "The given integer argument k=" << k
82 <<
" must be nonnegative.");