#include #include "types.h" int udu( Real *a, /* coefficient matrix in udu format */ Real *y, /* RHS on input, solution on output */ const int neq, /* No. of equations to solve */ const int ib, /* 1/2 bandwidth of the system */ const int lu /* lu=1 factorize, lu=0 resolve */ ); int main() { Real *a, *y; int neq,ib,lu; int i,j; lu=1; neq=9; ib=3; a=NULL; y=NULL; a=(Real *)malloc(neq*ib*sizeof(Real)); y=(Real *)malloc(neq*sizeof(Real)); for (j=0;j