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

gnn_phandle.c File Reference

#include <assert.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_errno.h>
#include "gnn_phandle.h"
#include "chunkallocator.h"

Include dependency graph for gnn_phandle.c:

Include dependency graph

Go to the source code of this file.

Functions

void gnn_phandle_destroy (gnn_phandle *ph)
 Destroys a parameter handle.

int gnn_vector_use_flags (gsl_vector *v, const gsl_vector_int *f)
 Set the frozen parameters to zero.

int gnn_vector_int_count_frozen_flags (const gsl_vector_int *f)
 Counts the amount of frozen flags.

gnn_phandlegnn_phandle_new (size_t size)
 Creates a new parameter handle.

int gnn_phandle_unref (gnn_phandle *ph)
 Unreferences a parameter handle.

int gnn_phandle_ref (gnn_phandle *ph)
 References a parameter handle.

size_t gnn_phandle_get_size (gnn_phandle *ph)
 Returns the total number of parameters.

size_t gnn_phandle_get_free (gnn_phandle *ph)
 Returns the number of free parameters.

gsl_vector * gnn_phandle_get_w (gnn_phandle *ph)
 Returns a pointer to the internal parameter vector.

gsl_vector * gnn_phandle_get_dw (gnn_phandle *ph)
 Returns a pointer to the internal parameter gradient.

gsl_vector_int * gnn_phandle_get_f (gnn_phandle *ph)
 Returns a pointer to the internal frozen flags.

int gnn_phandle_update (gnn_phandle *ph)
 Updates the handle's fields.


Variables

chunkallocator_phallocator = NULL
 The internal memory chunk allocator for parameter handles.


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