44 #ifndef ROL_REGRESSIONERROR_H
45 #define ROL_REGRESSIONERROR_H
65 if (data.size() != x.size()) {
73 Real
value(
const std::vector<Real> &x, Real &tol ) {
76 std::vector<Real> c; c.assign(x.begin()+1,x.end());
80 std::vector<Real> X; X.assign(data.begin()+1,data.end());
85 for (
int i = 0; i < Xdim; ++i) {
91 void gradient( std::vector<Real> &g,
const std::vector<Real> &x, Real &tol ) {
95 std::vector<Real> X; X.assign(data.begin()+1,data.end());
98 g[0] = static_cast<Real>(-1);
99 for (
int i = 0; i < Xdim; ++i) {
104 void hessVec( std::vector<Real> &hv,
const std::vector<Real> &v,
const std::vector<Real> &x, Real &tol ) {
105 hv.assign(hv.size(),static_cast<Real>(0));