Boost logo

Boost Users :

Subject: [Boost-users] accumulators: not copying doubles into the acc set
From: MM (finjulhich_at_[hidden])
Date: 2012-07-06 11:32:26


Hello,

Having a list of doubles stored somewhere, is there a way not to copy the
doubles into the accumulator set and just iterate somehow through the
existing data in order to save memory.

Imagine I have a std::vector<double> with 10million entries.

Then pushing each double to the accumulator set object, then I'd imagine, at
one point, the process would hold the 10 million doubles twice.

Rds,

MM


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net