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

gnn_parallel.h File Reference

#include "gnn_node.h"

Include dependency graph for gnn_parallel.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.

Data Structures

struct  _gnn_parallel

Typedefs

typedef _gnn_parallel gnn_parallel

Functions

gnn_nodegnn_parallel_new (size_t size,...)
 Creates a gnn_parallel node.

gnn_nodegnn_parallel_new_with_node_vector (gnn_node_vector *v)
 Creates a gnn_parallel node with a given node vector.

int gnn_parallel_get_input_offset (gnn_node *node, int i)
 Gets the offset of the i-th subnode's input.

int gnn_parallel_get_input_length (gnn_node *node, int i)
 Gets the length of the i-th subnode's input.

int gnn_parallel_get_output_offset (gnn_node *node, int i)
 Gets the offset of the i-th subnode's output.

int gnn_parallel_get_output_length (gnn_node *node, int i)
 Gets the length of the i-th subnode's output.


Typedef Documentation

typedef struct _gnn_parallel gnn_parallel
 


Function Documentation

int gnn_parallel_get_input_length gnn_node   node,
int    i
 

Parameters:
node  A pointer to a gnn_parallel node.
i  The index.
Returns:
The length.

Definition at line 509 of file gnn_parallel.c.

int gnn_parallel_get_input_offset gnn_node   node,
int    i
 

Parameters:
node  A pointer to a gnn_parallel node.
i  The index.
Returns:
The offset.

Definition at line 487 of file gnn_parallel.c.

int gnn_parallel_get_output_length gnn_node   node,
int    i
 

Parameters:
node  A pointer to a gnn_parallel node.
i  The index.
Returns:
The offset.

Definition at line 553 of file gnn_parallel.c.

int gnn_parallel_get_output_offset gnn_node   node,
int    i
 

Parameters:
node  A pointer to a gnn_parallel node.
i  The index.
Returns:
The offset.

Definition at line 531 of file gnn_parallel.c.

gnn_node* gnn_parallel_new size_t    size,
...   
 

This function creates a node of the gnn_parallel type. Its inputs and outputs are the concatenation of its subnode's inputs and outputs.

Example:

 gnn_node *parallel, *node1, *node2, *node3;

 // build the node 1 to 3
 ...

 // build the parallel node
 parallel = gnn_parallel_new (3, node1, node2, node3);
Parameters:
size  The number of subnodes.
...  A list of pointers to the subnodes.
Returns:
A pointer to a new gnn_parallel node.

Definition at line 320 of file gnn_parallel.c.

gnn_node* gnn_parallel_new_with_node_vector gnn_node_vector   v
 

This function creates a node of the gnn_parallel type. Its inputs and outputs are the concatenation of its subnode's inputs and outputs.

Example:

 gnn_node *parallel;
 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
 parallel = gnn_parallel_new_with_node_vector (vector);
Parameters:
v  A pointer to a gnn_node_vector.
Returns:
A pointer to a new gnn_parallel node.

Definition at line 382 of file gnn_parallel.c.


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