We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7fba3 commit b345031Copy full SHA for b345031
GPU/Common/GPUCommonArray.h
@@ -29,6 +29,12 @@ struct array {
29
GPUd() const T& operator[](size_t i) const { return m_internal_V__[i]; };
30
GPUd() T* data() { return m_internal_V__; };
31
GPUd() const T* data() const { return m_internal_V__; };
32
+ GPUd() void fill(const T& t)
33
+ {
34
+ for (size_t i{0}; i < N; ++i) {
35
+ m_internal_V__[i] = t;
36
+ }
37
38
T m_internal_V__[N];
39
};
40
template <class T, class... E>
0 commit comments