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

gnn_pbundle.c File Reference

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

Include dependency graph for gnn_pbundle.c:

Include dependency graph

Go to the source code of this file.

Functions

gnn_pbundlegnn_pbundle_new ()
 Creates a new gnn_pbundle.

void gnn_pbundle_destroy (gnn_pbundle *pb)
 Destroys a gnn_pbundle.

int gnn_pbundle_insert (gnn_pbundle *pb, gnn_phandle *ph, int n)
 Inserts a parameter handle into a parameter bundle.

int gnn_pbundle_remove (gnn_pbundle *pb, const gnn_phandle *ph, int n)
 Removes a parameter handle from a parameter bundle.

int gnn_pbundle_join (gnn_pbundle *pb, const gnn_pbundle *pbop)
 Join two parameter bundles.

int gnn_pbundle_detach (gnn_pbundle *pb, const gnn_pbundle *pbop)
 Detach a parameter bundle.

int gnn_pbundle_get_n_free (gnn_pbundle *pb)
 Get the number of free parameters hold by the bundle.

int gnn_pbundle_get_size (gnn_pbundle *pb)
 Get the size of the parameter hold by the bundle.

int gnn_pbundle_get_w (gnn_pbundle *pb, gsl_vector *w)
 Get the complete parameter vector.

int gnn_pbundle_set_w (gnn_pbundle *pb, const gsl_vector *w)
 Set parameter vector.

int gnn_pbundle_set_w_at (gnn_pbundle *pb, size_t i, double wi)
 Set the i-th parameter.

int gnn_pbundle_set_w_all (gnn_pbundle *pb, double wi)
 Sets a value for all parameters.

double gnn_pbundle_get_w_at (gnn_pbundle *pb, size_t i)
 Gets the i-th paramter.

int gnn_pbundle_get_dw (gnn_pbundle *pb, gsl_vector *dw)
 Gets a the parameter gradient.

int gnn_pbundle_set_dw (gnn_pbundle *pb, const gsl_vector *dw)
 Sets a the parameter gradient.

int gnn_pbundle_set_dw_at (gnn_pbundle *pb, size_t i, double dwi)
 Sets the i-th parameter gradient value.

int gnn_pbundle_set_dw_all (gnn_pbundle *pb, double dwi)
 Sets a unique value for all the parameter gradient's elements.

double gnn_pbundle_get_dw_at (gnn_pbundle *pb, size_t i)
 Gets the i-th parameter gradient.

int gnn_pbundle_get_f (gnn_pbundle *pb, gsl_vector_int *f)
 Gets freeze flag vector.

int gnn_pbundle_set_f (gnn_pbundle *pb, const gsl_vector_int *f)
 Sets the freeze flags.

int gnn_pbundle_set_f_at (gnn_pbundle *pb, size_t i, int fi)
 Sets the i-th freeze flag.

int gnn_pbundle_set_f_all (gnn_pbundle *pb, int fi)
 Sets a value for all freeze flags.

int gnn_pbundle_get_f_at (gnn_pbundle *pb, size_t i)
 Gets the i-th freeze flag.


Variables

chunkallocator_ca = NULL
 The internal gnn_pbundle memory chunk allocator.


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