You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d272bfe
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: include/af/array.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -330,7 +330,7 @@ namespace af
330
330
331
331
\endcode
332
332
333
-
\note If \p src is \ref afHost, the first \p dim0 elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer.
333
+
\note If \p src is \ref afHost, the first \p dim0 elements are copied. If \p src is \ref afDevice, no copy is done; the array object wraps the device pointer AND takes ownership ownership of the underlying memory.
334
334
335
335
*/
336
336
template<typename T>
@@ -354,7 +354,7 @@ namespace af
354
354
355
355
\image html 2dArray.png
356
356
357
-
\note If \p src is \ref afHost, the first \p dim0 * \p dim1 elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer. The data is treated as column major format when performing linear algebra operations.
357
+
\note If \p src is \ref afHost, the first \p dim0 * \p dim1 elements are copied. If \p src is \ref afDevice, no copy is done; the array object wraps the device pointer AND takes ownership ownership of the underlying memory. The data is treated as column major format when performing linear algebra operations.
358
358
*/
359
359
template<typename T>
360
360
array(dim_t dim0, dim_t dim1,
@@ -378,7 +378,7 @@ namespace af
378
378
array A(3, 3, 2, h_buffer); // copy host data to 3D device array
379
379
\endcode
380
380
381
-
\note If \p src is \ref afHost, the first \p dim0 * \p dim1 * \p dim2 elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer. The data is treated as column major format when performing linear algebra operations.
381
+
\note If \p src is \ref afHost, the first \p dim0 * \p dim1 * \p dim2 elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer and does not take ownership of the underlying memory. The data is treated as column major format when performing linear algebra operations.
382
382
383
383
\image html 3dArray.png
384
384
*/
@@ -407,7 +407,7 @@ namespace af
407
407
array A(2, 2, 2, 2, h_buffer); // copy host data to 4D device array
408
408
\endcode
409
409
410
-
\note If \p src is \ref afHost, the first \p dim0 * \p dim1 * \p dim2 * \p dim3 elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer. The data is treated as column major format when performing linear algebra operations.
410
+
\note If \p src is \ref afHost, the first \p dim0 * \p dim1 * \p dim2 * \p dim3 elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer and does not take ownership of the underlying memory. The data is treated as column major format when performing linear algebra operations.
\note If \p src is \ref afHost, the first dims.elements() elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer. The data is treated as column major format when performing linear algebra operations.
447
+
\note If \p src is \ref afHost, the first dims.elements() elements are copied. If \p src is \ref afDevice, no copy is done; the array object just wraps the device pointer and does not take ownership of the underlying memory. The data is treated as column major format when performing linear algebra operations.
0 commit comments