root/libBM.cpp @ 2

Revision 2, 450 bytes (checked in by smidl, 16 years ago)

first shot

Line 
1#include <itpp/itbase.h>
2#include "libBM.h"
3
4using namespace itpp;
5
6
7RV::RV(ivec in_ids, Array<std::string> in_names, ivec in_sizes, ivec in_times, ivec in_obs) {
8//TODO: check consistency!
9// All vetors should be of same length
10ids = in_ids;
11names = in_names;
12sizes = in_sizes;
13times = in_times;
14obs = in_obs;
15};
16
17std::ostream &operator<<(std::ostream &os, const RV &rv) {
18
19os << rv.names(0) << rv.names(1) << "(" << rv.ids(0) << ")";
20
21return os;
22}
Note: See TracBrowser for help on using the browser.