Hello, I just tried to multiply TVector by TMatrix: ---------------------------------------- test.C { TVector a(2); a(0) = 1.; a(1) = 2.; cout << " ---------------------------------------- vector a: "; a.Print(); TMatrix m(2,2); m(0,0) = 2.; m(1,1) = 2.; cout << " ---------------------------------------- matrix m: "; m.Print(); TVector b(2); b = m*a; cout << " ---------------------------------------- vector b = m*a: ";b.Print(); b = a*m; cout << " ---------------------------------------- vector b = a*m: ";b.Print(); } ------------------------------------------- with the following result (see below), which shows that `b' is not being defined. Am I missing something? Thanks, Pasha. -------------------------------------------------------------------------------- root [2] .x test.C ---------------------------------------- vector a: Vector 2 is as follows | 1 | ------------------ 0 | 1 1 | 2 ---------------------------------------- matrix m: Matrix 2x2 is as follows | 0 | 1 | ------------------------------------------------------------------ 0 | 2 0 1 | 0 2 ---------------------------------------- vector b = m*a: Vector 2 is as follows | 1 | ------------------ 0 | 0 1 | 0 ---------------------------------------- vector b = a*m: Vector 2 is as follows | 1 | ------------------ 0 | 0 1 | 0 --------------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:29 MET