mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-30 07:44:10 +08:00
only indentation
This commit is contained in:
parent
8b9b671e83
commit
f01332043b
@ -26,7 +26,7 @@ int ei_fdjac1(
|
|||||||
goto L40;
|
goto L40;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* computation of dense approximate jacobian. */
|
/* computation of dense approximate jacobian. */
|
||||||
|
|
||||||
for (j = 0; j < n; ++j) {
|
for (j = 0; j < n; ++j) {
|
||||||
temp = x[j];
|
temp = x[j];
|
||||||
@ -40,16 +40,16 @@ int ei_fdjac1(
|
|||||||
x[j] = temp;
|
x[j] = temp;
|
||||||
for (i = 0; i < n; ++i) {
|
for (i = 0; i < n; ++i) {
|
||||||
fjac(i,j) = (wa1[i] - fvec[i]) / h;
|
fjac(i,j) = (wa1[i] - fvec[i]) / h;
|
||||||
/* L10: */
|
/* L10: */
|
||||||
}
|
}
|
||||||
/* L20: */
|
/* L20: */
|
||||||
}
|
}
|
||||||
L30:
|
L30:
|
||||||
/* goto L110; */
|
/* goto L110; */
|
||||||
return iflag;
|
return iflag;
|
||||||
L40:
|
L40:
|
||||||
|
|
||||||
/* computation of banded approximate jacobian. */
|
/* computation of banded approximate jacobian. */
|
||||||
|
|
||||||
for (k = 0; k < msum; ++k) {
|
for (k = 0; k < msum; ++k) {
|
||||||
for (j = k; msum< 0 ? j > n: j < n; j += msum) {
|
for (j = k; msum< 0 ? j > n: j < n; j += msum) {
|
||||||
@ -57,7 +57,7 @@ L40:
|
|||||||
h = eps * ei_abs(wa2[j]);
|
h = eps * ei_abs(wa2[j]);
|
||||||
if (h == 0.) h = eps;
|
if (h == 0.) h = eps;
|
||||||
x[j] = wa2[j] + h;
|
x[j] = wa2[j] + h;
|
||||||
/* L60: */
|
/* L60: */
|
||||||
}
|
}
|
||||||
iflag = Functor::f(x, wa1);
|
iflag = Functor::f(x, wa1);
|
||||||
if (iflag < 0) {
|
if (iflag < 0) {
|
||||||
@ -73,17 +73,17 @@ L40:
|
|||||||
if (i >= j - mu && i <= j + ml) {
|
if (i >= j - mu && i <= j + ml) {
|
||||||
fjac(i,j) = (wa1[i] - fvec[i]) / h;
|
fjac(i,j) = (wa1[i] - fvec[i]) / h;
|
||||||
}
|
}
|
||||||
/* L70: */
|
/* L70: */
|
||||||
}
|
}
|
||||||
/* L80: */
|
/* L80: */
|
||||||
}
|
}
|
||||||
/* L90: */
|
/* L90: */
|
||||||
}
|
}
|
||||||
/* L100: */
|
/* L100: */
|
||||||
/* L110: */
|
/* L110: */
|
||||||
return iflag;
|
return iflag;
|
||||||
|
|
||||||
/* last card of subroutine fdjac1. */
|
/* last card of subroutine fdjac1. */
|
||||||
|
|
||||||
} /* fdjac1_ */
|
} /* fdjac1_ */
|
||||||
|
|
||||||
|
@ -34,14 +34,14 @@ int ei_fdjac2(
|
|||||||
x[j] = temp;
|
x[j] = temp;
|
||||||
for (i = 0; i < m; ++i) {
|
for (i = 0; i < m; ++i) {
|
||||||
fjac(i,j) = (wa[i] - fvec[i]) / h;
|
fjac(i,j) = (wa[i] - fvec[i]) / h;
|
||||||
/* L10: */
|
/* L10: */
|
||||||
}
|
}
|
||||||
/* L20: */
|
/* L20: */
|
||||||
}
|
}
|
||||||
/* L30: */
|
/* L30: */
|
||||||
return iflag;
|
return iflag;
|
||||||
|
|
||||||
/* last card of subroutine fdjac2. */
|
/* last card of subroutine fdjac2. */
|
||||||
|
|
||||||
} /* fdjac2_ */
|
} /* fdjac2_ */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user