Boost logo

Ublas :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2007-12-10 09:52:09


Either I completely misunderstand something, or zero_vector is seriously broken:

#include <boost/numeric/ublas/vector.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>

using namespace std;
namespace ublas = boost::numeric::ublas;

int main() {
  ublas::zero_vector<double> zeros (10);
  copy (zeros.begin(), zeros.end(), ostream_iterator<double> (cout, " "));
}

I expect this to print 10 '0'. Instead, it prints nothing.