mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
fix indentation for fcn_chkder
This commit is contained in:
parent
16d08b2b0f
commit
4f7daf942c
@ -19,25 +19,18 @@ int fcn_chkder(int /*m*/, int /*n*/, const double *x, double *fvec, double *fjac
|
|||||||
|
|
||||||
|
|
||||||
if (iflag == 0)
|
if (iflag == 0)
|
||||||
{
|
|
||||||
/* insert print statements here when nprint is positive. */
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
if (iflag != 2)
|
if (iflag != 2)
|
||||||
|
for (i=1; i<=15; i++) {
|
||||||
for (i=1; i<=15; i++)
|
|
||||||
{
|
|
||||||
tmp1 = i;
|
tmp1 = i;
|
||||||
tmp2 = 16 - i;
|
tmp2 = 16 - i;
|
||||||
tmp3 = tmp1;
|
tmp3 = tmp1;
|
||||||
if (i > 8) tmp3 = tmp2;
|
if (i > 8) tmp3 = tmp2;
|
||||||
fvec[i-1] = y[i-1] - (x[1-1] + tmp1/(x[2-1]*tmp2 + x[3-1]*tmp3));
|
fvec[i-1] = y[i-1] - (x[1-1] + tmp1/(x[2-1]*tmp2 + x[3-1]*tmp3));
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
for (i = 1; i <= 15; i++) {
|
||||||
for (i = 1; i <= 15; i++)
|
|
||||||
{
|
|
||||||
tmp1 = i;
|
tmp1 = i;
|
||||||
tmp2 = 16 - i;
|
tmp2 = 16 - i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user