NEURON
prmat.cpp
Go to the documentation of this file.
1 #include <../../nrnconf.h>
2 /*LINTLIBRARY*/
3 #if LINT
4 #define IGNORE(arg) {if(arg);}
5 #else
6 #define IGNORE(arg) arg
7 #endif
8 #include "lineq.h"
9 
10 void prmat(void)
11 {
12  int i, j;
13  struct elm *el;
14 
15  IGNORE(printf("\n\n "));
16  for (i=10 ; i <= neqn ; i += 10)
17  IGNORE(printf(" %1d", (i%100)/10));
18  IGNORE(printf("\n "));
19  for (i=1 ; i <= neqn; i++)
20  IGNORE(printf("%1d", i%10));
21  IGNORE(printf("\n\n"));
22  for (i=1 ; i <= neqn ; i++)
23  {
24  IGNORE(printf("%3d ", i));
25  j = 0;
26  for (el = rowst[i] ;el != ELM0 ; el = el->c_right)
27  {
28  for ( j++ ; j < el->col ; j++)
29  IGNORE(putchar(' '));
30  IGNORE(putchar('*'));
31  }
32  IGNORE(putchar('\n'));
33  }
34 }
#define i
Definition: md1redef.h:19
#define neqn
Definition: lineq.h:3
#define ELM0
Definition: lineq.h:27
#define rowst
Definition: lineq.h:1
printf
Definition: extdef.h:5
size_t j
#define IGNORE(arg)
Definition: prmat.cpp:6
void prmat(void)
Definition: prmat.cpp:10
Definition: lineq.h:17
unsigned col
Definition: lineq.h:19
struct elm * c_right
Definition: lineq.h:24