Revision 743e659d wuli.c

View differences:

wuli.c
1
#include<wuli.h>
1
#include"wuli.h"
2 2
#include<lp_lib.h>
3 3

  
4 4
#define x(n, i, j) (i+j*n + 1)
......
8 8
{
9 9
	if(t < source_id)
10 10
		return (n*n + i + j*n + t*n*n + 1);
11
	if(t == source_id)
12
		return -1;
13 11
	if(t > source_id)
14 12
		return (n*n + i + j*n + (t-1)*n*n + 1);
15

  
13
	return -1;
16 14
}
17 15

  
18 16
REAL node_output(const struct matrix * A, matsize i)

Also available in: Unified diff