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

Function PrintArray

Accelerators/Vtkm/Core/Testing/Cxx/TestVTKMDataArray.cxx:222–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221template <typename T>
222void PrintArray(vtkAOSDataArrayTemplate<T>* array)
223{
224 array->Print(std::cout);
225 std::cout << "Values: ";
226 for (int i = 0; i < array->GetNumberOfTuples(); ++i)
227 {
228 std::cout << "(" << array->GetTypedComponent(i, 0);
229 for (int j = 1; j < array->GetNumberOfComponents(); ++j)
230 {
231 std::cout << ", " << array->GetTypedComponent(i, j);
232 }
233 std::cout << ") ";
234 }
235 std::cout << "\n";
236}
237
238template <typename T>
239void PrintArray(vtkmDataArray<T>* array)

Callers 1

TestComputeRangeFunction · 0.70

Calls 5

PrintMethod · 0.45
GetNumberOfTuplesMethod · 0.45
GetTypedComponentMethod · 0.45
GetNumberOfComponentsMethod · 0.45
PrintSummaryMethod · 0.45

Tested by

no test coverage detected