gnn_output : Writing sets of vectors. datatypes are special objects that write vector samples to output devices. The raw gnn_output : Writing sets of vectors. structure defines a common interface that should be implemented by extensions of this type. Typical implementations can write vectors to files, memory, ports, etc.
There are two types of output devices: stream and random access. Stream devices do print to an output stream without carying about the sample and set size. In contrast, random access devices have a defined sample and set size.
|
|
This is the datatype that contains the basic elements for the implementation of a output vector writer. Every new type of outputs should extend this structure. Definition at line 50 of file gnn_output.h. |
|
|
This function type defines the form of the "destroy" functions for output writers. It should deallocate the extension's specific data. Definition at line 82 of file gnn_output.h. |
|
|
This function type defines the form of the "put" functions for output sets. A "put" function should save/store the k-th output sample and return 0 if suceeded. Definition at line 72 of file gnn_output.h. |
|
|
This function type defines the form of the "reset" functions for output sets. A "reset" function should prepare the internal properties for beginning a new sequence of output pattern writings. "reset" is usually called after the end of an epoch has been reached. Definition at line 62 of file gnn_output.h. |
|
|
Definition at line 88 of file gnn_output.h. |
|
|
This function is the default "destroy" function for an output. It assumes that there isn't any additional data for the specific dataset type, so it actually just returns.
Definition at line 102 of file gnn_output.c. |
|
|
This function is the default "reset" function for an output set. It does nothing.
Definition at line 82 of file gnn_output.c. |
|
|
This function destroys the output reader.
Definition at line 267 of file gnn_output.c. |
|
|
This function returns the output set's size. This number normally identifies the number of samples that the output device can handle simultaneously. It corresponds also to the maximum index that can be given in a call at gnn_output : Writing sets of vectors..
Definition at line 325 of file gnn_output.c. |
|
||||||||||||||||||||||||||||||||
|
This function initializes a given vector writer, setting its properties and installing its functions. If the "reset", or "destroy" functions aren't provided, then the default functions gnn_output : Writing sets of vectors. and gnn_output : Writing sets of vectors. are installed respectively. The "put" function is mandatory, and should always be provided. As an example, suppose that you have made your own extension to the gnn_output : Writing sets of vectors. datatype, one that writes to a random access file, which you called "my_writer". Also, suppose you have already coded the appropiate "reset", "put" and "destroy" functions for your special writer. Then, my_writer *myoutput; // a pointer to the output writer to be created gnn_output *set; // a pointer to the same structure, but viewed as a // gnn_output // allocate memory for the output writer myoutput = (my_writer *) malloc (sizeof (my_writer)); // view as a gnn_output set = (gnn_output *) myoutput; // initialize the output (you know there are only 100 samples) gnn_output_init (set, gnnOutputRA, 100, 5, serial_writer_reset, serial_writer_get, serial_writer_destroy); Please refer also to the alternative functions gnn_output : Writing sets of vectors. and gnn_output : Writing sets of vectors..
Definition at line 162 of file gnn_output.c. |
|
|
This function returns 1 if the device is a random access output device.
Definition at line 380 of file gnn_output.c. |
|
|
This function returns 1 if the device is a stream device.
Definition at line 360 of file gnn_output.c. |
|
||||||||||||||||
|
This function writes the given vector at the k-th position of the output device.
Definition at line 305 of file gnn_output.c. |
|
||||||||||||||||||||||||||||
|
This function initializes a given random access vector writer, setting its properties and installing its functions. Please refer to gnn_output : Writing sets of vectors. for detailed documentation.
Definition at line 248 of file gnn_output.c. |
|
|
This function resets the output handler.
Definition at line 285 of file gnn_output.c. |
|
|
This function returns the size of the output vectors that are written to this output device.
Definition at line 343 of file gnn_output.c. |
|
||||||||||||||||||||
|
This function initializes a given stream vector writer, setting its properties and installing its functions. Please refer to gnn_output : Writing sets of vectors. for detailed documentation.
Definition at line 223 of file gnn_output.c. |
1.2.18