Ignore:
Timestamp:
May 9, 2006, 3:41:40 PM (15 years ago)
Author:
Markus Ringnér
Message:

Modified addding arrays to Averagers so templates are used to allow for addition of all array types with operator[]. Modified Distance so operator() can use arrays of different types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/statistics/AveragerPair.cc

    r490 r582  
    1919  }
    2020 
    21   void AveragerPair::add(const gslapi::vector& x, const gslapi::vector& y)
    22   {
    23     assert(x.size()==y.size());
    24     for (size_t i=0; i<x.size(); i++)
    25       add(x(i),y(i));
    26   }
    2721
    2822}} // of namespace statistics and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.