From 1c0fd9bb4726f28b5ccf4491b8d108b00c884ec3 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 30 Oct 2014 06:26:41 +0000
Subject: [PATCH] im2col slightly faster

---
 src/utils.h |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/utils.h b/src/utils.h
index 87ef428..49948f5 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,6 +1,7 @@
 #ifndef UTILS_H
 #define UTILS_H
 #include <stdio.h>
+#include <time.h>
 #include "list.h"
 
 void error(char *s);
@@ -13,6 +14,18 @@
 list *parse_csv_line(char *line);
 char *copy_string(char *s);
 int count_fields(char *line);
-double *parse_fields(char *line, int n);
+float *parse_fields(char *line, int n);
+void normalize_array(float *a, int n);
+void scale_array(float *a, int n, float s);
+void translate_array(float *a, int n, float s);
+int max_index(float *a, int n);
+float constrain(float a, float max);
+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 **one_hot_encode(float *a, int n, int k);
+float sec(clock_t clocks);
 #endif
 

--
Gitblit v1.10.0