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
}
i
#define i
Definition:
md1redef.h:19
lineq.h
neqn
#define neqn
Definition:
lineq.h:3
ELM0
#define ELM0
Definition:
lineq.h:27
rowst
#define rowst
Definition:
lineq.h:1
printf
printf
Definition:
extdef.h:5
j
size_t j
Definition:
nrngsl_real_radix2.cpp:50
IGNORE
#define IGNORE(arg)
Definition:
prmat.cpp:6
prmat
void prmat(void)
Definition:
prmat.cpp:10
elm
Definition:
lineq.h:17
elm::col
unsigned col
Definition:
lineq.h:19
elm::c_right
struct elm * c_right
Definition:
lineq.h:24
src
sparse
prmat.cpp