| 140 | |
| 141 | template <typename IntTypeA, typename IntTypeB> |
| 142 | void SumIntegral(vtkIdType begin, vtkIdType end) |
| 143 | { |
| 144 | TupleFetcher<IntTypeA> tupleA(this->Result); |
| 145 | TupleFetcher<IntTypeB> tupleB(this->Summand); |
| 146 | for (vtkIdType ii = begin; ii < end; ++ii) |
| 147 | { |
| 148 | tupleA.Fetch(ii); |
| 149 | tupleB.Fetch(ii); |
| 150 | tupleA += tupleB; |
| 151 | tupleA.Update(ii); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | void SumFloatingPoint(vtkIdType begin, vtkIdType end) |
| 156 | { |