From 2313a8eb54d703323279c0fb9b2c9c52d26f0cf9 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Fri, 06 Mar 2015 18:49:03 +0000 Subject: [PATCH] Split commands into different files --- src/utils.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index ee26d35..4c6b2a9 100644 --- a/src/utils.h +++ b/src/utils.h @@ -4,6 +4,11 @@ #include <time.h> #include "list.h" +char *basecfg(char *cfgfile); +int alphanum_to_int(char c); +char int_to_alphanum(int i); +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(); @@ -22,11 +27,13 @@ void translate_array(float *a, int n, float s); int max_index(float *a, int n); float constrain(float a, float max); +float mse_array(float *a, int n); float rand_normal(); float rand_uniform(); 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 -- Gitblit v1.10.0