Changes between Initial Version and Version 3 of Ticket #8438


Ignore:
Timestamp:
May 21, 2013, 6:49:41 PM (9 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8438

    • Property Cc ofirmebel@… added
  • Ticket #8438 – Description

    initial v3  
    11When compiling the following code without optimizations, it behaves as expected: (compiled with g++-4.7.2 with no flags at all)
    22
     3
     4{{{
    35#include <boost/numeric/ublas/vector.hpp>
    46#include <boost/numeric/ublas/io.hpp>
     
    1315    return 0;
    1416}
     17}}}
     18
    1519
    1620
    1721Output:
     22
     23{{{
    1824[3](1,1,1)
    1925[3](1,5,1)
    20265
     27}}}
     28
    2129
    2230When compiling the exact same code with O1, O2, and O3 it produces the following output:
     31
     32{{{
    2333[3](0,0,0)
    2434[3](0,0,0)
    25355
     36}}}
     37
    2638
    2739I noticed that inner_prod() also sees the vector as zeros.