Debian Codegraph @

packages/seacas/libraries/chaco/eigen/solistout.c

raw
1 /*
2 * Copyright(C) 1999-2020, 2023 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8
9 #include "structs.h" // for orthlink, orthlink_float
10 #include <stdio.h> // for printf
11
12 /* Print out the orthogonalization set, double version */
13 void solistout(struct orthlink **solist, /* vector of pntrs to orthlnks */
14 int ngood, /* number of good vecs on list */
15 int j /* current number of Lanczos steps */
16 )
17 {
18 int i; /* index */
19 extern int DEBUG_EVECS; /* debugging output level for eigen computations */
20
21 for (i = 1; i <= ngood; i++) {
22 if ((solist[i])->index <= (j / 2)) {
23 printf(".");
24 }
25 else {
26 printf("+");
27 }
28 /* Really detailed output: printf("\n"); printf("depth
29 %d\n",(solist[i])->depth); printf("index %d\n",(solist[i])->index);
30 printf("ritzval %g\n",(solist[i])->ritzval); printf("betaji
31 %g\n",(solist[i])->betaji); printf("tau %g\n",(solist[i])->tau);
32 printf("prevtau %g\n",(solist[i])->prevtau);
33 vecout((solist[i])->vec,1,n,"vec", NULL); */
34 }
35 printf("%d\n", ngood);
36
37 if (DEBUG_EVECS > 2) {
38 printf(" actual indices: ");
39 for (i = 1; i <= ngood; i++) {
40 printf(" %2d", solist[i]->index);
41 }
42 printf("\n");
43 }
44 }
45
46 /* Print out the orthogonalization set, float version */
47 void solistout_float(struct orthlink_float **solist, /* vector of pntrs to orthlnks */
48 int ngood, /* number of good vecs on list */
49 int j /* current number of Lanczos steps */
50 )
51 {
52 int i; /* index */
53
54 for (i = 1; i <= ngood; i++) {
55 if ((solist[i])->index <= (j / 2)) {
56 printf(".");
57 }
58 else {
59 printf("+");
60 }
61 }
62 printf("%d\n", ngood);
63 }