Boost logo

Boost :

Subject: Re: [boost] [ublas] issue in using vector in version 1.64
From: David Bellot (david.bellot_at_[hidden])
Date: 2017-05-24 12:28:40

it works for me too.
Strange but that you have.
Are you sure your boost is correctly installed ?

v(i) = i;
assigns i to v at position i
the () is an overloaded operator in ublas::vector equivalent to []
So here you could write
v(i) = i;
v[i] = i;

For matrices, however, you need to write
m(i,j) = value;

On Mon, May 22, 2017 at 8:32 AM, Rishabh Arora via ublas <
ublas_at_[hidden]> wrote:

> Hello,
> I just build the latest version of boost (1.64)
> I tried running the following code:
> It didn't compile and instead gave the following error:
> 202017-05-22%2012-37-43.png
> Can someone please help in understanding and rectifying it.
> Thanks in advance,
> Best Regards,
> Rishabh
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> Sent to: david.bellot_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at