Changes between Initial Version and Version 3 of Ticket #8438
- Timestamp:
- May 21, 2013, 6:49:41 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8438
- Property Cc added
-
Ticket #8438 – Description
initial v3 1 1 When compiling the following code without optimizations, it behaves as expected: (compiled with g++-4.7.2 with no flags at all) 2 2 3 4 {{{ 3 5 #include <boost/numeric/ublas/vector.hpp> 4 6 #include <boost/numeric/ublas/io.hpp> … … 13 15 return 0; 14 16 } 17 }}} 18 15 19 16 20 17 21 Output: 22 23 {{{ 18 24 [3](1,1,1) 19 25 [3](1,5,1) 20 26 5 27 }}} 28 21 29 22 30 When compiling the exact same code with O1, O2, and O3 it produces the following output: 31 32 {{{ 23 33 [3](0,0,0) 24 34 [3](0,0,0) 25 35 5 36 }}} 37 26 38 27 39 I noticed that inner_prod() also sees the vector as zeros.