Go to the source code of this file.
◆ invert_()
Definition at line 93 of file invert.c.
References abs, max, min, and order.
Referenced by analys_().
97 integer phi_dim1, phi_offset, i__1, i__3;
143 phi_offset = phi_dim1 + 1;
148 for (j = 1; j <= i__1; ++j) {
150 for (i__ = j; i__ <= i__2; ++i__) {
151 v[i__ + j * 10 - 11] = phi[i__ + j * phi_dim1];
154 for (k = 1; k <= i__2; ++k) {
155 save = v[j + k * 10 - 11] * v[k + k * 10 - 11];
157 for (i__ = j; i__ <= i__3; ++i__) {
158 v[i__ + j * 10 - 11] -= v[i__ + k * 10 - 11] * save;
162 if ((r__1 = v[j + j * 10 - 11],
abs(r__1)) < 1e-10f) {
167 for (k = 1; k <= i__2; ++k) {
168 rc[j] -= rc[k] * v[j + k * 10 - 11];
170 v[j + j * 10 - 11] = 1.f / v[j + j * 10 - 11];
171 rc[j] *= v[j + j * 10 - 11];
175 r__1 =
min(r__2,.999f);
176 rc[j] =
max(r__1,-.999f);
182 for (i__ = j; i__ <= i__1; ++i__) {