1
/* ruinv.c CCMATH mathematics library source code.
3
* Copyright (C) 2000 Daniel A. Atkinson All rights reserved.
4
* This code may be redistributed under the terms of the GNU library
5
* public license (LGPL). ( See the lgpl.license file for details.)
6
* ------------------------------------------------------------------------
8
int ruinv(double *a, int n)
14
double tt, z, *p, *q, *r, *s, *t;
16
for (j = 0, tt = 0., p = a; j < n; ++j, p += n + 1)
17
if ((z = fabs(*p)) > tt)
20
for (j = 0, p = a; j < n; ++j, p += n + 1) {
24
for (q = a + j, t = a; q < p; t += n + 1, q += n) {
25
for (s = q, r = t, z = 0.; s < p; s += n)