MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / show

Function show

examples/webgpu_from_scratch/run.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 */
60template <typename numtype, size_t N>
61std::string show(std::array<numtype, N> a, std::string name) {
62 std::string output = "\n\n";
63 if (name != "") {
64 output += name + " (" + std::to_string(N) + ") : \n";
65 }
66 for (size_t i = 0; i < N; i++) {
67 output += std::to_string(a[i]) + "\n";
68 if (i > 10) {
69 output += "...\n";
70 break;
71 }
72 }
73 return output;
74}
75
76int main() {
77

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected