Lines Matching refs:fvec

17 int fcn_chkder(const VectorXd &x, VectorXd &fvec, MatrixXd &fjac, int iflag)  in fcn_chkder()  argument
22 assert(15 == fvec.size()); in fcn_chkder()
38 fvec[i] = y[i] - (x[0] + tmp1/(x[1]*tmp2 + x[2]*tmp3)); in fcn_chkder()
63 VectorXd x(n), fvec(m), xp, fvecp(m), err; in testChkder() local
71 internal::chkder(x, fvec, fjac, xp, fvecp, 1, err); in testChkder()
72 fcn_chkder(x, fvec, fjac, 1); in testChkder()
73 fcn_chkder(x, fvec, fjac, 2); in testChkder()
75 internal::chkder(x, fvec, fjac, xp, fvecp, 2, err); in testChkder()
77 fvecp -= fvec; in testChkder()
100 VERIFY_IS_APPROX(fvec, fvec_ref); in testChkder()
133 int operator()(const VectorXd &x, VectorXd &fvec) const in operator ()()
144 fvec[i] = y[i] - (x[0] + tmp1/(x[1]*tmp2 + x[2]*tmp3)); in operator ()()
186 VERIFY_IS_APPROX(lm.fvec.blueNorm(), 0.09063596); in testLmder1()
215 fnorm = lm.fvec.blueNorm(); in testLmder()
246 int operator()(const VectorXd &x, VectorXd &fvec) in operator ()()
250 assert(fvec.size()==n); in operator ()()
258 fvec[k] = temp - temp1 - 2.*temp2 + 1.; in operator ()()
300 VERIFY_IS_APPROX(solver.fvec.blueNorm(), 1.192636e-08); in testHybrj1()
335 VERIFY_IS_APPROX(solver.fvec.blueNorm(), 1.192636e-08); in testHybrj()
351 int operator()(const VectorXd &x, VectorXd &fvec) const in operator ()()
356 assert(fvec.size()==n); in operator ()()
364 fvec[k] = temp - temp1 - 2.*temp2 + 1.; in operator ()()
388 VERIFY_IS_APPROX(solver.fvec.blueNorm(), 1.192636e-08); in testHybrd1()
419 VERIFY_IS_APPROX(solver.fvec.blueNorm(), 1.192636e-08); in testHybrd()
433 int operator()(const VectorXd &x, VectorXd &fvec) in operator ()()
440 assert(15==fvec.size()); in operator ()()
448 fvec[i] = y[i] - (x[0] + tmp1/(x[1]*tmp2 + x[2]*tmp3)); in operator ()()
491 VERIFY_IS_APPROX(lm.fvec.blueNorm(), 0.09063596); in testLmstr1()
520 fnorm = lm.fvec.blueNorm(); in testLmstr()
533 int operator()(const VectorXd &x, VectorXd &fvec) const in operator ()()
541 assert(fvec.size()==15); in operator ()()
549 fvec[i] = y[i] - (x[0] + tmp1/(x[1]*tmp2 + x[2]*tmp3)); in operator ()()
560 VectorXd x(n), fvec(15); in testLmdif1() local
575 functor(x, fvec); in testLmdif1()
576 VERIFY_IS_APPROX(fvec.blueNorm(), 0.09063596); in testLmdif1()
606 fnorm = lm.fvec.blueNorm(); in testLmdif()
638 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
643 assert(fvec.size()==54); in operator ()()
646 fvec[i] = exp(-b[0]*x)/(b[1]+b[2]*x) - m_y[i]; in operator ()()
691 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.1304802941E+02); in testNistChwirut2()
712 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.1304802941E+02); in testNistChwirut2()
725 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
728 assert(fvec.size()==14); in operator ()()
730 fvec[i] = b[0]*(1.-exp(-b[1]*m_x[i])) - m_y[i] ; in operator ()()
771 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.2455138894E-01); in testNistMisra1a()
788 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.2455138894E-01); in testNistMisra1a()
798 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
807 assert(fvec.size()==236); in operator ()()
810 fvec[i] = (b[0]+b[1]*x+b[2]*xx+b[3]*xxx) / (1.+b[4]*x+b[5]*xx+b[6]*xxx) - m_y[i]; in operator ()()
861 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.5324382854E+00); in testNistHahn1()
883 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.5324382854E+00); in testNistHahn1()
900 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
903 assert(fvec.size()==14); in operator ()()
905 fvec[i] = b[0]*b[1]*x[i]/(1.+b[1]*x[i]) - y[i]; in operator ()()
947 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.6419295283E-02); in testNistMisra1d()
964 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.6419295283E-02); in testNistMisra1d()
976 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
979 assert(fvec.size()==24); in operator ()()
981 fvec[i] = b[0]*exp(-b[1]*x[i]) + b[2]*exp(-b[3]*x[i]) + b[4]*exp(-b[5]*x[i]) - y[i]; in operator ()()
1025 …VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.430899764097e-25); // should be 1.4307867721E-25, but n… in testNistLanczos1()
1046 …VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.428595533845e-25); // should be 1.4307867721E-25, but n… in testNistLanczos1()
1062 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1065 assert(fvec.size()==9); in operator ()()
1067 fvec[i] = b[0] / (1.+exp(b[1]-b[2]*x[i])) - y[i]; in operator ()()
1111 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 8.0565229338E+00); in testNistRat42()
1129 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 8.0565229338E+00); in testNistRat42()
1141 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1144 assert(fvec.size()==16); in operator ()()
1146 fvec[i] = b[0] * exp(b[1]/(x[i]+b[2])) - y[i]; in operator ()()
1189 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 8.7945855171E+01); in testNistMGH10()
1207 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 8.7945855171E+01); in testNistMGH10()
1219 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1223 assert(fvec.size()==6); in operator ()()
1225 fvec[i] = b[0]*(1.-exp(-b[1]*x[i])) - y[i]; in operator ()()
1268 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.1680088766E+03); in testNistBoxBOD()
1288 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.1680088766E+03); in testNistBoxBOD()
1299 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1302 assert(fvec.size()==33); in operator ()()
1304 fvec[i] = b[0] + b[1]*exp(-b[3]*x[i]) + b[2]*exp(-b[4]*x[i]) - y[i]; in operator ()()
1350 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.4648946975E-05); in testNistMGH17()
1371 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.4648946975E-05); in testNistMGH17()
1385 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1388 assert(fvec.size()==11); in operator ()()
1391 fvec[i] = b[0]*(xx+x*b[1])/(xx+x*b[2]+b[3]) - y[i]; in operator ()()
1437 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 3.0750560385E-04); in testNistMGH09()
1457 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 3.0750560385E-04); in testNistMGH09()
1472 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1475 assert(fvec.size()==154); in operator ()()
1477 fvec[i] = b[0]* pow(b[1]+x[i],-1./b[2]) - y[i]; in operator ()()
1523 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.2404744073E-04); in testNistBennett5()
1541 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.2404744073E-04); in testNistBennett5()
1553 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1557 assert(fvec.size()==37); in operator ()()
1560 fvec[i] = (b[0]+b[1]*x+b[2]*xx+b[3]*xxx) / (1.+b[4]*x+b[5]*xx+b[6]*xxx) - _y[i]; in operator ()()
1611 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.6427082397E+03); in testNistThurber()
1636 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 5.6427082397E+03); in testNistThurber()
1652 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1655 assert(fvec.size()==15); in operator ()()
1657 fvec[i] = b[0] * pow(1.+exp(b[1]-b[2]*x[i]),-1./b[3]) - y[i]; in operator ()()
1703 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 8.7864049080E+03); in testNistRat43()
1725 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 8.7864049080E+03); in testNistRat43()
1740 int operator()(const VectorXd &b, VectorXd &fvec) in operator ()()
1743 assert(fvec.size()==35); in operator ()()
1745 fvec[i] = b[0]/b[1] * exp(-0.5*(x[i]-b[2])*(x[i]-b[2])/(b[1]*b[1])) - y[i]; in operator ()()
1788 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.4635887487E-03); in testNistEckerle4()
1806 VERIFY_IS_APPROX(lm.fvec.squaredNorm(), 1.4635887487E-03); in testNistEckerle4()