
10 Dec
2007
10 Dec
'07
2:43 p.m.
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.