12345678910111213141516171819202122232425262728293031 |
- /*
- * Tema 2 ASC
- * 2020 Spring
- * !!! Do not modify this file !!!
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include <sys/time.h>
- typedef double* (*Solver)(int, double *, double*);
- #define get_rand_double(limit) ((((double)rand()) / RAND_MAX) * (2 * limit) - limit)
- struct test {
- int seed;
- int N;
- // path to the file where the result matrix will be written
- char output_save_file[100];
- };
- double* my_solver(int, double *, double *);
- int run_test(struct test, Solver, float *);
- void free_data(double **);
- int generate_data(struct test, double **, int);
- int read_input_file(char *, int *, struct test **);
|