$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2007-12-10 09:43:23
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.