From 787d5345609459f21fd65d2d8b4fcd55201e21a1 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Mon, 13 Oct 2014 07:31:10 +0000 Subject: [PATCH] Convolutional working on GPU --- src/utils.h | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/utils.h b/src/utils.h index 87ef428..f38af33 100644 --- a/src/utils.h +++ b/src/utils.h @@ -13,6 +13,17 @@ 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); #endif -- Gitblit v1.10.0