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 */
| 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 | { |