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

Function printArray

Common/Core/Testing/Cxx/TestStridedArray.cxx:66–76  ·  view source on GitHub ↗

* debugging purpose, print the array content, one row per tuple. */

Source from the content-addressed store, hash-verified

64 * debugging purpose, print the array content, one row per tuple.
65 */
66void printArray(const std::vector<float>& vec)
67{
68 for (int tupleIdx = 0; tupleIdx < buffer::nbOfTuples; tupleIdx++)
69 {
70 for (int arrayIdx = 0; arrayIdx < buffer::nbOfArrays; arrayIdx++)
71 {
72 std::cout << vec[tupleIdx * buffer::nbOfArrays + arrayIdx] << " ";
73 }
74 std::cout << "\n";
75 }
76}
77}
78
79/**

Callers 1

TestGenericDataArrayAPIFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected