Boost logo

Ublas :

Subject: Re: [ublas] scalar_vector arithmetic bug?
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2009-02-04 11:41:03


Neal Becker wrote:

> #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> >
> >()'
>

Ah, I wanted element_div.