MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / vec2

Method vec2

Common/nvVector.h:110–116  ·  view source on GitHub ↗

Default/scalar constructor

Source from the content-addressed store, hash-verified

108
109 // Default/scalar constructor
110 vec2(const T &t = T())
111 {
112 for (int i = 0; i < size(); i++)
113 {
114 _array[i] = t;
115 }
116 }
117
118 // Construct from array
119 vec2(const T *tp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected