Revision 2, 450 bytes
(checked in by smidl, 17 years ago)
|
first shot
|
Rev | Line | |
---|
[2] | 1 | #include <itpp/itbase.h> |
---|
| 2 | #include "libBM.h" |
---|
| 3 | |
---|
| 4 | using namespace itpp; |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | RV::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 |
---|
| 10 | ids = in_ids; |
---|
| 11 | names = in_names; |
---|
| 12 | sizes = in_sizes; |
---|
| 13 | times = in_times; |
---|
| 14 | obs = in_obs; |
---|
| 15 | }; |
---|
| 16 | |
---|
| 17 | std::ostream &operator<<(std::ostream &os, const RV &rv) { |
---|
| 18 | |
---|
| 19 | os << rv.names(0) << rv.names(1) << "(" << rv.ids(0) << ")"; |
---|
| 20 | |
---|
| 21 | return os; |
---|
| 22 | } |
---|