NEURON
bksub.cpp
Go to the documentation of this file.
1
#include <../../nrnconf.h>
2
3
#include "
lineq.h
"
4
5
void
bksub
(
void
)
6
{
7
int
i
;
8
struct
elm
*el, *pivot=0;
9
10
for
(i =
neqn
; i >= 1 ; i--)
11
{
12
for
(el =
rowst
[
eqord
[i]] ; el !=
NULL
; el = el->
c_right
)
13
{
14
if
(el->
col
==
varord
[i])
15
pivot = el;
16
else
17
rhs
[el->
row
] -= el->
value
*
rhs
[el->
col
];
18
}
19
rhs
[
eqord
[
i
]] /= pivot->
value
;
20
}
21
}
rowst
#define rowst
Definition:
lineq.h:1
lineq.h
elm::col
unsigned col
Definition:
lineq.h:19
eqord
#define eqord
Definition:
lineq.h:4
bksub
void bksub(void)
Definition:
bksub.cpp:5
elm::row
unsigned row
Definition:
lineq.h:18
elm::c_right
struct elm * c_right
Definition:
lineq.h:24
rhs
#define rhs
Definition:
lineq.h:6
i
#define i
Definition:
md1redef.h:12
neqn
#define neqn
Definition:
lineq.h:3
elm
Definition:
lineq.h:16
varord
#define varord
Definition:
lineq.h:5
elm::value
double value
Definition:
lineq.h:20
NULL
return NULL
Definition:
cabcode.cpp:461
src
sparse
bksub.cpp