diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-12 23:25:26 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-12 23:25:26 +0000 |
commit | 37438ca202a9a1f4e782f1d1803686fc6b65e918 (patch) | |
tree | 7cf856979306a32f7817b528b306539cf914e93b /linear.c | |
parent | 7a57eeccd8ded740d88aba3ea9dcb09050983dd0 (diff) |
Move static function prototypes from nbench1.h to appropriate files
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@14 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'linear.c')
-rw-r--r-- | linear.c | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -18,6 +18,46 @@ ** matrix). */ +/* +** DEFINES +*/ + +#define LUARRAYROWS 101L +#define LUARRAYCOLS 101L + +/* +** TYPEDEFS +*/ +typedef struct +{ union + { double *p; + double (*ap)[][LUARRAYCOLS]; + } ptrs; +} LUdblptr; + +/* +** GLOBALS +*/ +double *LUtempvv; + +/* +** PROTOTYPES +*/ +static void LUFreeMem(double *a, double *b, + double *abase, double *bbase); +static unsigned long DoLUIteration(double *a, double *b, + double *abase, double *bbase, + unsigned long numarrays); +static void build_problem( double a[][LUARRAYCOLS], + int n, double b[LUARRAYROWS]); +static int ludcmp(double a[][LUARRAYCOLS], + int n, int indx[], int *d); +static void lubksb(double a[][LUARRAYCOLS], + int n, int indx[LUARRAYROWS], + double b[LUARRAYROWS]); +static int lusolve(double a[][LUARRAYCOLS], + int n, double b[LUARRAYROWS]); + /********* ** DoLU ** ********** |