hi may i know where is the ublass::vector push_back or what ever does the same ?
p.s (i'm not talking about std::vector)
hi may i know where is the ublass::vector push_back or what ever does the same ?
p.s (i'm not talking about std::vector)
As far I can tell from reading the documentation there isn't one, the ublas::vector cannot be expanded. You must initialize it like this:
vector<double> v (3);
for (int i = 0; i < v.size (); ++i)
v (i) = i;