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 }
void bksub(void)
Definition: bksub.cpp:5
#define i
Definition: md1redef.h:19
#define rhs
Definition: lineq.h:6
#define varord
Definition: lineq.h:5
#define eqord
Definition: lineq.h:4
#define neqn
Definition: lineq.h:3
#define rowst
Definition: lineq.h:1
#define NULL
Definition: spdefs.h:105
Definition: lineq.h:17
double value
Definition: lineq.h:20
unsigned col
Definition: lineq.h:19
struct elm * c_right
Definition: lineq.h:24
unsigned row
Definition: lineq.h:18