Boost logo

Ublas :

Subject: Re: [ublas] Errors using coordinate_matrix
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2011-12-01 03:40:25


On 2011-11-30 18:35, Bruno Abreu Calfa wrote:
> Hello,
>
> I have been getting compiling errors when using coordinate_matrix. For
> example:

Hello Bruno,

I've reduced your error to

#include <boost/numeric/ublas/matrix_sparse.hpp>

using namespace boost::numeric::ublas;

int main(int argc, char* argv[])
{
     coordinate_matrix<double> A(5, 5, 12);

     // Uncomment for error
     //A(0, 0) = 2.;

     return 0;
}

so I guess it's not related to the bindings.

Cheers,

Rutger