next up previous contents
Next: read Up: The IO_matrix_file class Previous: Constructor   Contents

Subsections

write

Syntax

short write(const vector<Matrix> & data);
short write(const vector<Matrix> & data, const vector<string> & data_title);

Description

This member function appends data to a file (specified by the constructor, and opened by write() when first called). data_title is used to write a header description at the beginning of the file. If it is not specified, a default description $datai, i=1,2,\cdots,n$ will be added. The header contains the number of iterations, the number of vectors and the data parameters, as follows:

nb_iterations 1269

nb_vector 2

nb_rows 1 nb_cols 1 time (s)

nb_rows 6 nb_cols 1 q(i) (rad)

-----------------

Return Value

A short integer return the status:
0 successful,
IO_COULD_NOT_OPEN_FILE
IO_DATA_EMPTY



Richard Gourdeau 2004-07-06