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

gnn_serial.h File Reference

#include "gnn_node.h"

Include dependency graph for gnn_serial.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

gnn_nodegnn_serial_new (int size,...)
 Build a node stack.

gnn_nodegnn_serial_new_with_node_vector (gnn_node_vector *v)
 Build a node stack with a given node vector.

gnn_nodegnn_serial_get_node (gnn_node *node, int i)
 Get the i-th subnode.

int gnn_serial_get_size (gnn_node *node)
 Gets the number of nodes that the stack is build of.


Function Documentation

gnn_node* gnn_serial_get_node gnn_node   node,
int    i
 

This function returns a pointer to the stack's i-th node.

Parameters:
node  A stack node.
i  The node's index (should be within [0, size-1]).
Returns:
A pointer to the i-th node or NULL if failed.

Definition at line 666 of file gnn_serial.c.

int gnn_serial_get_size gnn_node   node
 

Parameters:
node  A stack node.
Returns:
Size of the stack.

Definition at line 679 of file gnn_serial.c.

gnn_node* gnn_serial_new int    size,
...   
 

This function builds a new gnn_serial node. The node computes the function , where are the functions implemented by the subnodes given as arguments, in the same order.

The input and output sizes should match on each other, so that the output size of a preceeding node must be the same as the input size of the following node.

Example:

 gnn_node *stack, *node1, *node2, *node3;

 // build the nodes 1 to 3
 ...

 // build the stack
 stack = gnn_serial_new (3, node1, node2, node3);
Parameters:
size  The number of subnodes.
...  The list of subnodes.
Returns:
A new stack node.

Definition at line 523 of file gnn_serial.c.

gnn_node* gnn_serial_new_with_node_vector gnn_node_vector   v
 

This function builds a new gnn_serial node. The node computes the function , where are the functions implemented by the subnodes given as arguments, in the same order.

The input and output sizes should match on each other, so that the output size of a preceeding node must be the same as the input size of the following node.

Example:

 gnn_node *stack;
 gnn_node_vector *vector;

 // build the node vector
 vector = gnn_node_vector_new (3);

 // build the nodes vector[0], vector[1] and vector[2]
 ...

 // build the stack
 stack = gnn_serial_new_with_node_vector (vector);

Todo:
Automatic divergence-convergence insertion.
Parameters:
v  A pointer to a gnn_node_vector.
Returns:
A new stack node.

Definition at line 592 of file gnn_serial.c.


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