src/utils.h
@@ -4,6 +4,8 @@ #include <time.h> #include "list.h" void read_all(int fd, char *buffer, size_t bytes); void write_all(int fd, char *buffer, size_t bytes); char *find_replace(char *str, char *orig, char *rep); void error(const char *s); void malloc_error(); @@ -28,6 +30,7 @@ float sum_array(float *a, int n); float mean_array(float *a, int n); float variance_array(float *a, int n); float mag_array(float *a, int n); float **one_hot_encode(float *a, int n, int k); float sec(clock_t clocks); #endif