Go to the documentation of this file.00001 #include <util/aggreg2dto1dpart.hpp>
00002
00003 template <typename T, typename Pr>
00004 util::Aggreg2Dto1Dpart<T,Pr>::Aggreg2Dto1Dpart(const Pr& p, int nbproc)
00005 :pr(p), m(nbproc)
00006 {
00007 temp = new int [m+1];
00008 }
00009
00010
00011 template <typename T, typename Pr>
00012 T util::Aggreg2Dto1Dpart<T,Pr>::interval(int i1, int i2) const
00013 {
00014 if (i2<=i1) return 0;
00015 util::Aggreg2Dto1D<T, Pr, false> a (pr, i1+1, i2, 1, pr.prefixsizeY() - 1);
00016 return oned::NicolPlus< T, util::Aggreg2Dto1D<T,Pr, false> >::nicol_plus (m, a, pr.prefixsizeY(), temp, -1);
00017 }
00018
00019 template <typename T, typename Pr>
00020 util::Aggreg2Dto1Dpart<T,Pr>::~Aggreg2Dto1Dpart ()
00021 {
00022 delete[] temp;
00023 }