#include "machdefs.h" #include #include #include "tarrinit.h" #include "array.h" #include "timing.h" int main(int narg, char* arg[]) { SophyaInit(); InitTim(); // Initializing the CPU timer try { cout << "\n -----> Testing TArray Conversion <---- " << endl; TArray ia(7,5); ia = Sequence(10., 2.); TArray ra(7,5); ra = ia; cout << ra << endl; TArray rb(5,3); rb = Sequence(20., .5); TMatrix mx(3,5); cout << " TArray rb(5,3); rb = Sequence(20., .5); rb : " << endl; cout << rb << endl; mx = rb; cout << " TMatrix mx(3,5); mx = rb; mx: " << endl; cout << mx << endl; TArray rc(10); rc = 3.1415; TMatrix mx2(rc); cout << " TArray rc(10) = 3.1415 , TMatrix mx2(rc) rc : " << endl; cout << mx2 << endl; TMatrix mx3(3,5); cout << " Trying TMatrix mx3(3,5); mx3 = rc; ?? " << endl; mx3 = rc; } catch (PThrowable & exc) { cerr << " catched Exception " << exc.Msg() << endl; } catch (...) { cerr << " catched unknown (...) exception " << endl; } }