fp_write_col_vector_with_header - Writes a vector as a column to an output stream with a header


#include "m/m_vec_io.h"

Example compile flags (system dependent):
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 

int fp_write_col_vector_with_header
	const Vector *vp,
	FILE *fp


This routine writes data contained in a vector to a file specified by a pointer to FILE. The vector is output as a column of data. Since vector files with headers are usually components of more complex data structures, we write the data at full precision. The vector length header has the format:
    #! length=<vector-length>
(The "#" is actually the comment char (user settable) and the "!" is acutally the header char, also user settable). "fp" points to a FILE associated with the output stream. "vp" points to the vector whose contents are to be written.


NO_ERROR if successful, ERROR on failure.


This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.


Kobus Barnard


Lindsay Martin


read_vector_from_config_file , read_vector , fp_read_vector , fp_read_raw_vector , fp_read_vector_with_header , fp_read_ascii_vector , fp_ow_read_vector , write_row_vector , fp_write_row_vector , write_indexed_vector , fp_write_indexed_vector , write_col_vector , fp_write_col_vector , write_col_vector_with_header , write_raw_vector , fp_write_raw_vector , write_row_vector_full_precision , fp_write_row_vector_full_precision , write_col_vector_full_precision , fp_write_col_vector_full_precision , read_vector_vector_from_config_file , read_vector_vector , fp_read_vector_vector , fp_read_raw_vector_vector , fp_read_formatted_vector_vector , fp_write_vector_vector_with_title , write_vector_vector , fp_write_vector_vector , write_raw_vector_vector , fp_write_raw_vector_vector , fp_write_raw_vector_vector_header , write_vector_vector_full_precision , fp_write_vector_vector_full_precision