From: Eric O. <et...@sp...> - 2001-11-07 20:43:35
|
On Wed, 7 Nov 2001, O. Petzold wrote: <snip> > return all(v1 != v2); Using your code, I can't compile this statement using gcc 2.95.4 and blitz 20001213. <snip> > TinyVector<int, 3> v1(1,2,3); > TinyVector<int, 3> v2(3,2,1); > > cout << (test_2(v1, v2) ? "TRUE" : "FALSE") << endl; // true <snip> > The last should be evaluated to TRUE. I don't follow your statement. Assuming that the != operator works on each element: (v1 != v2) is [TRUE, FALSE, TRUE] all( [TRUE, FALSE, TRUE] ) is FALSE, neh? --------------------- blitz-support list -------------------------------- * To subscribe/unsubscribe: use the handy web form at http://oonumerics.org/blitz/lists.html |