MCPcopy Create free account
hub / github.com/Kitware/VTK / SumFloatingPoint

Method SumFloatingPoint

Filters/General/vtkSumTables.cxx:155–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 void SumFloatingPoint(vtkIdType begin, vtkIdType end)
156 {
157 std::vector<double> tupleA;
158 std::vector<double> tupleB;
159 int numComp = this->Result->GetNumberOfComponents();
160 tupleA.resize(numComp);
161 tupleB.resize(numComp);
162 for (vtkIdType ii = begin; ii < end; ++ii)
163 {
164 this->Result->GetTuple(ii, tupleA.data());
165 this->Summand->GetTuple(ii, tupleB.data());
166 for (int jj = 0; jj < numComp; ++jj)
167 {
168 tupleA[jj] += tupleB[jj];
169 }
170 this->Result->SetTuple(ii, tupleA.data());
171 }
172 }
173
174 void operator()(vtkIdType begin, vtkIdType end)
175 {

Callers 1

operator()Method · 0.95

Calls 5

GetNumberOfComponentsMethod · 0.45
resizeMethod · 0.45
GetTupleMethod · 0.45
dataMethod · 0.45
SetTupleMethod · 0.45

Tested by

no test coverage detected