MCPcopy Create free account
hub / github.com/clMathLibraries/clSPARSE / array

Method array

src/library/internal/data-types/clarray.hpp:70–80  ·  view source on GitHub ↗

I know that std::array do not have any constructors but we to pass info * about the buffer in nice way. I think no other is required * @brief array * @param control * @param value * @param flags * @param init */

Source from the content-addressed store, hash-verified

68 * @param init
69 */
70 array(clsparseControl control, const value_type& value = value_type(),
71 cl_mem_flags flags = CL_MEM_READ_WRITE, cl_bool init = true) :
72 queue(control->queue)
73 {
74 BASE::data() = create_buffer(N, flags);
75 if (init)
76 {
77 cl_int status = fill(control, value);
78 CLSPARSE_V(status, "array.fill");
79 }
80 }
81
82 array (const self_type& other, bool copy = true) : queue(other.queue)
83 {

Callers

nothing calls this directly

Calls 2

fillFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected