Boost logo

Ublas :

Subject: [ublas] scalar_vector arithmetic bug?
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2009-02-04 09:59:40


#include <boost/numeric/ublas/vector.hpp>
namespace ublas=boost::numeric::ublas;

int main() {
  ublas::scalar_vector<double> x (10, 1);
  ublas::vector<double> y (10);

  ublas::vector<double> z = x / y;
}

/usr/local/src/boost.hg/boost/numeric/ublas/traits.hpp:98: error: no match
for 'operator+' in '0.0 + boost::numeric::ublas::vector<double,
boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >()'