Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gnn_utilities.c File Reference

#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gsl/gsl_block.h>
#include <assert.h>
#include <math.h>
#include "gnn_globals.h"
#include "gnn_utilities.h"

Include dependency graph for gnn_utilities.c:

Include dependency graph

Go to the source code of this file.

Functions

gsl_rng * gnn_get_rng ()
 Get the global random number generator.

int gnn_vector_resize (gsl_vector **vector, int new_size)
 Resize a vector.

int gnn_vector_sum_elements (gsl_vector *v)
 Compute the sum of the vector's elements.

double gnn_vector_euclidian_dist (const gsl_vector *v, const gsl_vector *u)
 Compute the euclidian distance between to vectors.

int gnn_matrix_check_sizes_from_stream (FILE *stream, size_t *m, size_t *n)
 Compute matrix size from a stream.

gsl_vector * gnn_vector_load (const char *filename)
 Load a vector from a file.

int gnn_vector_save (const char *filename, gsl_vector *v)
 Saves a vector to a file.

gsl_matrix * gnn_matrix_load (const char *filename)
 Load a matrix from a file.

int gnn_matrix_save (const char *filename, gsl_matrix *A)
 Saves a matrix to a file.


Generated on Sun Jun 13 20:51:26 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18