00001 /*************************************************************************** 00002 * @file gnn_parallel.h 00003 * @brief Parallel Layer. 00004 * 00005 * @date : 10-08-03 18:59, 22-08-03 00:19 00006 * @author : Pedro Ortega C. <peortega@dcc.uchile.cl> 00007 * Copyright 2003 Pedro Ortega C. 00008 ****************************************************************************/ 00009 /* 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _GNN_PARALLEL_H_ 00026 #define _GNN_PARALLEL_H_ 00027 00028 /******************************************/ 00029 /* Include Files */ 00030 /******************************************/ 00031 00032 #include "gnn_node.h" 00033 00034 00035 00036 /******************************************/ 00037 /* Typedefs */ 00038 /******************************************/ 00039 00040 typedef struct _gnn_parallel 00041 { 00042 gnn_node node; 00043 00044 size_t *in_off; 00045 size_t *in_size; 00046 size_t *out_off; 00047 size_t *out_size; 00048 00049 } gnn_parallel; 00050 00051 00052 00053 /******************************************/ 00054 /* Public Interface */ 00055 /******************************************/ 00056 00057 gnn_node * 00058 gnn_parallel_new (size_t size, ...); 00059 00060 gnn_node * 00061 gnn_parallel_new_with_node_vector (gnn_node_vector *v); 00062 00063 int 00064 gnn_parallel_get_input_offset (gnn_node *node, int i); 00065 00066 int 00067 gnn_parallel_get_input_length (gnn_node *node, int i); 00068 00069 int 00070 gnn_parallel_get_output_offset (gnn_node *node, int i); 00071 00072 int 00073 gnn_parallel_get_output_length (gnn_node *node, int i); 00074 00075 00076 00077 #endif /* _GNN_PARALLEL_H_ */ 00078
1.2.18