10 double start = what_time_is_it_now(); \ 12 printf("%s took: %f seconds\n", #a, what_time_is_it_now() - start); \ 15 #define TWO_PI 6.2831853071795864769252866f 18 void shuffle(
void *
arr,
size_t n,
size_t size);
25 void read_all(
int fd,
char *buffer,
size_t bytes);
26 void write_all(
int fd,
char *buffer,
size_t bytes);
29 void find_replace(
char *str,
char *orig,
char *rep,
char *output);
35 char *
fgetl(FILE *fp);
41 float constrain(
float min,
float max,
float a);
45 void mean_arrays(
float **a,
int n,
int els,
float *avg);
46 float dist_array(
float *a,
float *b,
int n,
int sub);
48 float sec(clock_t clocks);
void print_statistics(float *a, int n)
int constrain_int(int a, int min, int max)
double what_time_is_it_now()
void read_all(int fd, char *buffer, size_t bytes)
void shuffle(void *arr, size_t n, size_t size)
int alphanum_to_int(char c)
int count_fields(char *line)
float constrain(float min, float max, float a)
float rand_scale(float s)
list * split_str(char *s, char delim)
void strip_char(char *s, char bad)
float dist_array(float *a, float *b, int n, int sub)
void write_int(int fd, int n)
void find_replace(char *str, char *orig, char *rep, char *output)
void translate_array(float *a, int n, float s)
void write_all(int fd, char *buffer, size_t bytes)
char * copy_string(char *s)
int read_all_fail(int fd, char *buffer, size_t bytes)
char int_to_alphanum(int i)
int int_index(int *a, int val, int n)
float * parse_fields(char *line, int n)
int write_all_fail(int fd, char *buffer, size_t bytes)
int rand_int(int min, int max)
float ** one_hot_encode(float *a, int n, int k)
void sorta_shuffle(void *arr, size_t n, size_t size, size_t sections)
void free_ptrs(void **ptrs, int n)
list * parse_csv_line(char *line)
float sec(clock_t clocks)
void mean_arrays(float **a, int n, int els, float *avg)