Function mult_vector_spec (o2scl_hdf)

O2scl : Function List

template<class vec_t>
int o2scl_hdf::mult_vector_spec(std::string spec, std::vector<vec_t> &v, int verbose = 0, bool err_on_fail = true)

A list of vectors specified by a string.

Formats:

  • function: func:<num>:<len(i)>:<function of i and j>

  • columns in text file: text:<column index list>

  • HDF5 object(s) in file(s): hdf5:<file name(s)>:<object name(s)>:[additional specification]

Also, many vector specifications from vector_spec() work.

Used in

o2scl_acol_mult_vectors_to_conts() which is used in o2graph plotv . Used in acol create table-mv.
Note

The vector v is not cleared and new vector specified in spec are added to the end of v.

Warning

Experimental.

Idea for Future:

When hdf5 is a single vector spec, it has to close the file so that vector_spec() can open it again. This should be fixed. Maybe the way to improve this is to break it up into several functions.